|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
javax.ide.model.java.source.tree.TreeKind
public final class TreeKind
The TreeKind enumeration identifies each individual kind of Tree.
For code-readability, all constants have been prefixed as TREE_*. Constants for subinterfaces of StatementT have been prefixed as TREE_STMT_*. Constants for subinterfaces of ExpressionT have been prefixed as TREE_EXPR_*. Constants for subinterfaces of DocT have been prefixed as TREE_DOC_*.
Though the doc structure is not part of the Java Language specification (moreover, there is no specification of doc structure), doc comment constants have been included because refactoring features may need to access and mutate doc comment contents.
In this version, this class is 1.4 compatible. In a later version, it will be redone as an enum.
| Field Summary | |
|---|---|
static TreeKind |
TREE_ANNOTATIONAn annotation. |
static TreeKind |
TREE_BLOCKA code block. |
static TreeKind |
TREE_CLASS_BODYA body of a class declaration. |
static TreeKind |
TREE_CLASS_DA class, enum, interface, or annotation type declaration. |
static TreeKind |
TREE_CLASS_INITIALIZERAn initializer in a class declaration. |
static TreeKind |
TREE_CONSTRUCTOR_DA constructor declaration. |
static TreeKind |
TREE_DOC_COMMENTA doc comment. |
static TreeKind |
TREE_ENUM_CONSTANT_DAn enum constant declaration. |
static TreeKind |
TREE_EXPR_ANNOTATIONAn expression wrapping an annotation. |
static TreeKind |
TREE_EXPR_ARRAY_ACCESSAn array access expression. |
static TreeKind |
TREE_EXPR_ASSIGNMENTAn expression for an assignment operation. |
static TreeKind |
TREE_EXPR_DOTAn expression for an identifier selector. |
static TreeKind |
TREE_EXPR_IDENTIFIERAn identifier expression. |
static TreeKind |
TREE_EXPR_INFIXAn expression for an infix operation. |
static TreeKind |
TREE_EXPR_LISTA list of expressions. |
static TreeKind |
TREE_EXPR_LITERALA lexer literal. |
static TreeKind |
TREE_EXPR_METHOD_CALLA method call. |
static TreeKind |
TREE_EXPR_NEW_ARRAYAn array creator expression. |
static TreeKind |
TREE_EXPR_NEW_CLASSA class creator expression. |
static TreeKind |
TREE_EXPR_QUESTIONAn expression for the conditional operator. |
static TreeKind |
TREE_EXPR_TYPEAn expression wrapping a type reference. |
static TreeKind |
TREE_EXPR_TYPECASTAn expression for a typecast operation. |
static TreeKind |
TREE_EXPR_UNARYAn expression for a prefix or postfix operation. |
static TreeKind |
TREE_EXPR_WRAPPERAn expression wrapping another expression. |
static TreeKind |
TREE_FIELD_DA field declaration that is not for an enum constant. |
static TreeKind |
TREE_FIELD_VARIABLEA field variable. |
static TreeKind |
TREE_FILEA source file (a compilation unit). |
static TreeKind |
TREE_FORMAL_PARAMETERA formal parameter. |
static TreeKind |
TREE_FORMAL_PARAMETER_LISTA formal parameter list. |
static TreeKind |
TREE_IMPORT_DAn import declaration. |
static TreeKind |
TREE_INTERFACES_DAn interfaces clause for a class declaration. |
static TreeKind |
TREE_LOCAL_VARIABLEA local variable. |
static TreeKind |
TREE_LOCAL_VARIABLE_DA local variable declaration. |
static TreeKind |
TREE_METHOD_DA method declaration that is not for a constructor. |
static TreeKind |
TREE_NAMEA name, either a simple name or a qualified name. |
static TreeKind |
TREE_PACKAGE_DA package declaration. |
static TreeKind |
TREE_STATEMENT_LABELA statement label. |
static TreeKind |
TREE_STMT_ASSERTAn assert statement. |
static TreeKind |
TREE_STMT_BLOCKA statement wrapping a block. |
static TreeKind |
TREE_STMT_BREAKA break statement. |
static TreeKind |
TREE_STMT_CATCHA catch clause in a try statement. |
static TreeKind |
TREE_STMT_CONTINUEA continue statement. |
static TreeKind |
TREE_STMT_DOA do-while statement. |
static TreeKind |
TREE_STMT_ELSEAn else clause in an if statement. |
static TreeKind |
TREE_STMT_EMPTYAn empty statement. |
static TreeKind |
TREE_STMT_EXPRESSIONA statement wrapping an expression. |
static TreeKind |
TREE_STMT_FINALLYA finally clause in a try statement. |
static TreeKind |
TREE_STMT_FORA for statement, all variants. |
static TreeKind |
TREE_STMT_IFAn if statement. |
static TreeKind |
TREE_STMT_RETURNA return statement. |
static TreeKind |
TREE_STMT_SWITCHA switch statement. |
static TreeKind |
TREE_STMT_SYNCHA synchronized statement. |
static TreeKind |
TREE_STMT_THROWA throw statement. |
static TreeKind |
TREE_STMT_TRYA try statement. |
static TreeKind |
TREE_STMT_WHILEA while statement. |
static TreeKind |
TREE_SUPERCLASSA super-class clause for a class declaration. |
static TreeKind |
TREE_SWITCH_LABELA switch case label, either case or default. |
static TreeKind |
TREE_THROWSA throws clause for a method declaration. |
static TreeKind |
TREE_TYPE_ARGUMENTA type argument in a type reference. |
static TreeKind |
TREE_TYPE_PARAMETERA type parameter declaration. |
static TreeKind |
TREE_TYPE_REFERENCEA type reference. |
| Method Summary | |
|---|---|
int |
compareTo(TreeKind other) |
boolean |
equals(java.lang.Object other) |
java.lang.Class |
getDeclaringClass() |
java.lang.Class |
getTreeClass() |
int |
hashCode() |
java.lang.String |
name() |
int |
ordinal() |
java.lang.String |
toString() |
static TreeKind |
valueOf(java.lang.Class ignored, java.lang.String name) |
static TreeKind |
valueOf(int ordinal) |
static TreeKind[] |
values() |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final TreeKind TREE_ANNOTATION
public static final TreeKind TREE_BLOCK
public static final TreeKind TREE_CLASS_BODY
public static final TreeKind TREE_CLASS_D
public static final TreeKind TREE_CLASS_INITIALIZER
public static final TreeKind TREE_CONSTRUCTOR_D
public static final TreeKind TREE_DOC_COMMENT
public static final TreeKind TREE_ENUM_CONSTANT_D
public static final TreeKind TREE_FIELD_D
public static final TreeKind TREE_FIELD_VARIABLE
public static final TreeKind TREE_FILE
public static final TreeKind TREE_FORMAL_PARAMETER
public static final TreeKind TREE_FORMAL_PARAMETER_LIST
public static final TreeKind TREE_IMPORT_D
public static final TreeKind TREE_INTERFACES_D
The name "interfaces" was taken from reflection.
Class.getInterfaces()public static final TreeKind TREE_LOCAL_VARIABLE
public static final TreeKind TREE_LOCAL_VARIABLE_D
public static final TreeKind TREE_METHOD_D
public static final TreeKind TREE_NAME
public static final TreeKind TREE_PACKAGE_D
public static final TreeKind TREE_STATEMENT_LABEL
public static final TreeKind TREE_SUPERCLASS
Class.getSuperclass()public static final TreeKind TREE_SWITCH_LABEL
public static final TreeKind TREE_THROWS
public static final TreeKind TREE_TYPE_REFERENCE
public static final TreeKind TREE_TYPE_ARGUMENT
public static final TreeKind TREE_TYPE_PARAMETER
public static final TreeKind TREE_STMT_ASSERT
public static final TreeKind TREE_STMT_BLOCK
public static final TreeKind TREE_STMT_BREAK
public static final TreeKind TREE_STMT_CATCH
public static final TreeKind TREE_STMT_CONTINUE
public static final TreeKind TREE_STMT_DO
public static final TreeKind TREE_STMT_ELSE
public static final TreeKind TREE_STMT_EMPTY
public static final TreeKind TREE_STMT_EXPRESSION
public static final TreeKind TREE_STMT_FINALLY
public static final TreeKind TREE_STMT_FOR
public static final TreeKind TREE_STMT_IF
public static final TreeKind TREE_STMT_RETURN
public static final TreeKind TREE_STMT_SWITCH
public static final TreeKind TREE_STMT_SYNCH
public static final TreeKind TREE_STMT_THROW
public static final TreeKind TREE_STMT_TRY
public static final TreeKind TREE_STMT_WHILE
public static final TreeKind TREE_EXPR_ANNOTATION
public static final TreeKind TREE_EXPR_ARRAY_ACCESS
public static final TreeKind TREE_EXPR_ASSIGNMENT
public static final TreeKind TREE_EXPR_DOT
public static final TreeKind TREE_EXPR_IDENTIFIER
public static final TreeKind TREE_EXPR_INFIX
public static final TreeKind TREE_EXPR_LIST
public static final TreeKind TREE_EXPR_LITERAL
public static final TreeKind TREE_EXPR_METHOD_CALL
public static final TreeKind TREE_EXPR_NEW_ARRAY
public static final TreeKind TREE_EXPR_NEW_CLASS
public static final TreeKind TREE_EXPR_QUESTION
public static final TreeKind TREE_EXPR_TYPE
public static final TreeKind TREE_EXPR_TYPECAST
public static final TreeKind TREE_EXPR_UNARY
public static final TreeKind TREE_EXPR_WRAPPER
| Method Detail |
|---|
public java.lang.Class getTreeClass()
public java.lang.String name()
public java.lang.String toString()
toString in class java.lang.Objectpublic int ordinal()
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(TreeKind other)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.Class getDeclaringClass()
public static TreeKind valueOf(int ordinal)
public static TreeKind valueOf(java.lang.Class ignored,
java.lang.String name)
public static TreeKind[] values()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||