Class AnonymousField


public final class AnonymousField extends Symbol
A symbol which should be interpreted as a field access. Fields are added to the SymbolTable whenever a bare reference to an identifier should refer to a struct field; in GLSL, this is the result of declaring anonymous interface blocks.
  • Constructor Details

    • AnonymousField

      public AnonymousField(int position, @NonNull Variable container, int fieldIndex)
  • Method Details

    • getKind

      public @NonNull Node.SymbolKind getKind()
      Specified by:
      getKind in class Symbol
      See Also:
    • getType

      public @NonNull Type getType()
      Specified by:
      getType in class Symbol
    • getFieldIndex

      public int getFieldIndex()
    • getContainer

      public @NonNull Variable getContainer()
    • toString

      public @NonNull String toString()
      Specified by:
      toString in class Node
      Returns:
      a string representation of this AST node