Enum Class JavaElementType

java.lang.Object
java.lang.Enum<JavaElementType>
com.pnfsoftware.jeb.core.units.code.java.JavaElementType
All Implemented Interfaces:
Serializable, Comparable<JavaElementType>, Constable

public enum JavaElementType extends Enum<JavaElementType>
A list of Java AST element types. Each concrete implementation of IJavaElement provides its type via the getElementType method.
  • Enum Constant Details

    • Annotation

      public static final JavaElementType Annotation
      Annotation element.
    • AnnotationElement

      public static final JavaElementType AnnotationElement
      Annotation key-value element.
    • Operation

      public static final JavaElementType Operation
      Operation expression.

      Implementation note: JEB 4.0.3: Renamed from ArithmeticExpression.
      JEB 4.23: Renamed from Expression.

    • ArrayElement

      public static final JavaElementType ArrayElement
      Array element expression.
    • Assignment

      public static final JavaElementType Assignment
      Assignment statement.
    • Block

      public static final JavaElementType Block
      Statement block.
    • Break

      public static final JavaElementType Break
      Break statement.
    • Call

      public static final JavaElementType Call
      Method call expression or statement.
    • Catch

      public static final JavaElementType Catch
      Catch block.
    • Class

      public static final JavaElementType Class
      Class or interface element.
    • ConditionalExpression

      public static final JavaElementType ConditionalExpression
      Conditional expression.
    • Constant

      public static final JavaElementType Constant
      Constant expression.
    • Continue

      public static final JavaElementType Continue
      Continue statement.
    • Declaration

      public static final JavaElementType Declaration
      Declaration statement.

      Implementation note: JEB 5.5: renamed from Definition.

    • DoWhile

      public static final JavaElementType DoWhile
      Do-while statement.
    • Field

      public static final JavaElementType Field
      Field element.
    • For

      public static final JavaElementType For
      For statement.
    • ForEach

      public static final JavaElementType ForEach
      For-each statement.
    • Goto

      public static final JavaElementType Goto
      Goto statement.
    • Identifier

      public static final JavaElementType Identifier
      Identifier expression.
    • If

      public static final JavaElementType If
      If statement.
    • InstanceField

      public static final JavaElementType InstanceField
      Instance-field expression.
    • Label

      public static final JavaElementType Label
      Label statement.
    • Method

      public static final JavaElementType Method
      Method element.
    • Monitor

      public static final JavaElementType Monitor
      Monitor statement.
    • New

      public static final JavaElementType New
      New-instance expression.
    • NewArray

      public static final JavaElementType NewArray
      New-array expression.
    • Predicate

      public static final JavaElementType Predicate
      Predicate wrapper.
    • Return

      public static final JavaElementType Return
      Return statement.
    • StaticField

      public static final JavaElementType StaticField
      Static-field expression.
    • Switch

      public static final JavaElementType Switch
      Switch statement.
    • SynchronizedBlock

      public static final JavaElementType SynchronizedBlock
      Synchronized block statement.
    • Throw

      public static final JavaElementType Throw
      Throw statement.
    • Try

      public static final JavaElementType Try
      Try statement.
    • TypeReference

      public static final JavaElementType TypeReference
      Type-reference expression.
    • While

      public static final JavaElementType While
      While statement.
  • Method Details

    • values

      public static JavaElementType[] 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

      public static JavaElementType valueOf(String name)
      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 name
      NullPointerException - if the argument is null