Class Type.StructType

Enclosing class:
Type

public static final class Type.StructType extends Type
  • Method Details

    • isStruct

      public boolean isStruct()
      Overrides:
      isStruct in class Type
    • isInterfaceBlock

      public boolean isInterfaceBlock()
      Overrides:
      isInterfaceBlock in class Type
    • getFields

      @Nonnull public Type.Field[] getFields()
      Overrides:
      getFields in class Type
    • getComponents

      public int getComponents()
      Description copied from class: Type
      For type that contains scalars, returns the number of scalars. For all other types, causes an assertion failure.
      Overrides:
      getComponents in class Type
    • getNestingDepth

      public int getNestingDepth()
      Description copied from class: Type
      If the type is a struct, returns the depth of the most deeply-nested field.
      Overrides:
      getNestingDepth in class Type