Top Inners Constructors Methods
org.jetbrains.annotations

public final Class Debug

extends Object
Class Inheritance
Imports
org.intellij.lang.annotations.Language, java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Since
18.0.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
Debug.Renderer

Allows to change the presentation of an object in debuggers

Constructor Summary

AccessConstructor and Description
private
Debug()

Prohibited default constructor.

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Debugback to summary
private Debug()

Prohibited default constructor.

org.jetbrains.annotations back to summary

public @Interface Debug.Renderer

extends Annotation
Annotations
@Target:TYPE
@Retention:CLASS

Allows to change the presentation of an object in debuggers

Method Summary

Modifier and TypeMethod and Description
public @NonNls String
childrenArray()

Expression to be evaluated to obtain an array of object's children.

public @NonNls String
hasChildren()

Expression to be evaluated to check if the object has any children at all.

public @NonNls String
text()

Expression to be evaluated and used as the textual representation of the object.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

childrenArrayback to summary
public @NonNls String childrenArray()

Expression to be evaluated to obtain an array of object's children.
Usually the result is an array of elements in a collection, or an array of entries in a map.
this refers to the class instance being presented

Annotations
@Language:JAVA
prefix:class Renderer{Object[] $childrenArray(){return
suffix:;}}
@NonNls
hasChildrenback to summary
public @NonNls String hasChildren()

Expression to be evaluated to check if the object has any children at all.
This should work faster than childrenArray() and return boolean.
this refers to the class instance being presented

Annotations
@Language:JAVA
prefix:class Renderer{boolean $hasChildren(){return
suffix:;}}
@NonNls
textback to summary
public @NonNls String text()

Expression to be evaluated and used as the textual representation of the object.
this refers to the class instance being presented

Annotations
@Language:JAVA
prefix:class Renderer{String $text(){return
suffix:;}}
@NonNls