Enum Class ASTInjectionPoint

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

public enum ASTInjectionPoint extends Enum<ASTInjectionPoint>
  • Enum Constant Details

    • BEFORE_ALL

      public static final ASTInjectionPoint BEFORE_ALL
      The first index.
    • BEFORE_DECLARATIONS

      public static final ASTInjectionPoint BEFORE_DECLARATIONS
      The last most index before any declaration, function definition or layout defaults.
    • BEFORE_FUNCTIONS

      public static final ASTInjectionPoint BEFORE_FUNCTIONS
      The last most index before any function definition.
    • END

      public static final ASTInjectionPoint END
      The last index.
  • Method Details

    • values

      public static ASTInjectionPoint[] 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 ASTInjectionPoint 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
    • getInjectionIndex

      public abstract int getInjectionIndex(TranslationUnit translationUnit)
    • checkChildRelevant

      protected boolean checkChildRelevant(Class<?> childClass)