Enum Class Version

java.lang.Object
java.lang.Enum<Version>
io.github.douira.glsl_transformer.ast.node.Version
All Implemented Interfaces:
TokenTyped, Serializable, Comparable<Version>, Constable

public enum Version extends Enum<Version> implements TokenTyped
  • Enum Constant Details

    • GL20

      public static final Version GL20
    • GL21

      public static final Version GL21
    • GLES20

      public static final Version GLES20
    • GL30

      public static final Version GL30
    • GL31

      public static final Version GL31
    • GL32

      public static final Version GL32
    • GL33

      public static final Version GL33
    • GLES30

      public static final Version GLES30
    • GLES31

      public static final Version GLES31
    • GLES32

      public static final Version GLES32
    • GL40

      public static final Version GL40
    • GL41

      public static final Version GL41
    • GL42

      public static final Version GL42
    • GL43

      public static final Version GL43
    • GL44

      public static final Version GL44
    • GL45

      public static final Version GL45
    • GL46

      public static final Version GL46
  • Field Details

    • latest

      public static Version latest
    • tokenType

      public final int tokenType
    • number

      public final int number
    • es

      public final boolean es
  • Method Details

    • values

      public static Version[] 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 Version 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
    • getTokenType

      public int getTokenType()
      Specified by:
      getTokenType in interface TokenTyped
    • fromToken

      public static Version fromToken(Token token)
    • fromNumber

      public static Version fromNumber(int number)