Enum Class SyntaxType

java.lang.Object
java.lang.Enum<SyntaxType>
codeanalysis.syntax.SyntaxType
All Implemented Interfaces:
Serializable, Comparable<SyntaxType>, Constable

public enum SyntaxType extends Enum<SyntaxType>
Represents the type of syntax token or syntax node in the code analysis system.
Version:
1.0
Author:
Siyabend Urun
See Also:
  • Enum Constant Details

    • WhiteSpaceToken

      public static final SyntaxType WhiteSpaceToken
    • NumberToken

      public static final SyntaxType NumberToken
    • PlusToken

      public static final SyntaxType PlusToken
    • MinusToken

      public static final SyntaxType MinusToken
    • AsteriskToken

      public static final SyntaxType AsteriskToken
    • SlashToken

      public static final SyntaxType SlashToken
    • CloseParenthesisToken

      public static final SyntaxType CloseParenthesisToken
    • OpenParenthesisToken

      public static final SyntaxType OpenParenthesisToken
    • BadToken

      public static final SyntaxType BadToken
    • EOFToken

      public static final SyntaxType EOFToken
    • LiteralExpression

      public static final SyntaxType LiteralExpression
    • ParenthesizedExpression

      public static final SyntaxType ParenthesizedExpression
    • UnaryExpression

      public static final SyntaxType UnaryExpression
    • BinaryExpression

      public static final SyntaxType BinaryExpression
    • TrueKeyword

      public static final SyntaxType TrueKeyword
    • FalseKeyword

      public static final SyntaxType FalseKeyword
    • IdentifierToken

      public static final SyntaxType IdentifierToken
    • BangToken

      public static final SyntaxType BangToken
    • DoubleAmpersandToken

      public static final SyntaxType DoubleAmpersandToken
    • DoublePipeToken

      public static final SyntaxType DoublePipeToken
    • EqualsEqualsToken

      public static final SyntaxType EqualsEqualsToken
    • BangEqualsToken

      public static final SyntaxType BangEqualsToken
    • NameExpression

      public static final SyntaxType NameExpression
    • AssignmentExpression

      public static final SyntaxType AssignmentExpression
    • EqualsToken

      public static final SyntaxType EqualsToken
  • Method Details

    • values

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