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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(TreeVisitor visitor) Visit this AST with a given visitor.static StructDefinition
convert
(Context context, int pos, String structName, List<Type.Field> fields) getKind()
getType()
static StructDefinition
toString()
Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Constructor Details
-
StructDefinition
-
-
Method Details
-
convert
@Nullable public static StructDefinition convert(@Nonnull Context context, int pos, @Nonnull String structName, @Nonnull List<Type.Field> fields) -
make
-
getKind
- Specified by:
getKind
in classTopLevelElement
- See Also:
-
accept
Description copied from class:Node
Visit this AST with a given visitor. -
getType
-
toString
-