Enum Class JavaElementType
- All Implemented Interfaces:
Serializable,Comparable<JavaElementType>,Constable
A list of Java AST element types. Each concrete implementation of
IJavaElement provides
its type via the getElementType method.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAnnotation element.Annotation key-value element.Array element expression.Assignment statement.Statement block.Break statement.Method call expression or statement.Catch block.Class or interface element.Conditional expression.Constant expression.Continue statement.Declaration statement.Do-while statement.Field element.For statement.For-each statement.Goto statement.Identifier expression.If statement.Instance-field expression.Label statement.Method element.Monitor statement.New-instance expression.New-array expression.Operation expression.Predicate wrapper.Return statement.Static-field expression.Switch statement.Synchronized block statement.Throw statement.Try statement.Type-reference expression.While statement. -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaElementTypeReturns the enum constant of this class with the specified name.static JavaElementType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Annotation
Annotation element. -
AnnotationElement
Annotation key-value element. -
Operation
Operation expression.Implementation note: JEB 4.0.3: Renamed from
ArithmeticExpression.
JEB 4.23: Renamed fromExpression. -
ArrayElement
Array element expression. -
Assignment
Assignment statement. -
Block
Statement block. -
Break
Break statement. -
Call
Method call expression or statement. -
Catch
Catch block. -
Class
Class or interface element. -
ConditionalExpression
Conditional expression. -
Constant
Constant expression. -
Continue
Continue statement. -
Declaration
Declaration statement.Implementation note: JEB 5.5: renamed from
Definition. -
DoWhile
Do-while statement. -
Field
Field element. -
For
For statement. -
ForEach
For-each statement. -
Goto
Goto statement. -
Identifier
Identifier expression. -
If
If statement. -
InstanceField
Instance-field expression. -
Label
Label statement. -
Method
Method element. -
Monitor
Monitor statement. -
New
New-instance expression. -
NewArray
New-array expression. -
Predicate
Predicate wrapper. -
Return
Return statement. -
StaticField
Static-field expression. -
Switch
Switch statement. -
SynchronizedBlock
Synchronized block statement. -
Throw
Throw statement. -
Try
Try statement. -
TypeReference
Type-reference expression. -
While
While statement.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-