Package icyllis.arc3d.compiler.tree
Class StructDefinition
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.TopLevelElement
icyllis.arc3d.compiler.tree.StructDefinition
A struct at global scope, as in:
struct Material {
float roughness;
float metalness;
};
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StructDefinitionconvert(@NonNull Context context, int pos, @NonNull String structName, @NonNull List<Type.Field> fields) getKind()@NonNull TypegetType()static @Nullable StructDefinition@NonNull StringtoString()Methods inherited from class icyllis.arc3d.compiler.tree.TopLevelElement
acceptMethods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Constructor Details
-
StructDefinition
-
-
Method Details
-
convert
public static @Nullable StructDefinition convert(@NonNull Context context, int pos, @NonNull String structName, @NonNull List<Type.Field> fields) -
make
-
getKind
- Specified by:
getKindin classTopLevelElement- See Also:
-
getType
-
toString
-