Package icyllis.arc3d.compiler.tree
Class ConstructorArray
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Expression
icyllis.arc3d.compiler.tree.ConstructorCall
icyllis.arc3d.compiler.tree.ConstructorArray
Represents the construction of an array type, such as "float[5](x, y, z, w, 1)".
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone
(int position) static Expression
convert
(Context context, int position, Type type, List<Expression> arguments) Create array-constructor expressions.getKind()
static Expression
make
(int position, Type type, Expression[] arguments) Create array-constructor expressions.Methods inherited from class icyllis.arc3d.compiler.tree.ConstructorCall
accept, getArgument, getArguments, getComponentType, getConstantValue, isConstructorCall, toString
Methods inherited from class icyllis.arc3d.compiler.tree.Expression
clone, getCoercionCost, getType, isBooleanLiteral, isFloatLiteral, isIncomplete, isIntLiteral, isLiteral, toString
Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Method Details
-
convert
@Nullable public static Expression convert(@Nonnull Context context, int position, @Nonnull Type type, @Nonnull List<Expression> arguments) Create array-constructor expressions.Perform explicit check and report errors via ErrorHandler; returns null on error.
-
make
@Nonnull public static Expression make(int position, @Nonnull Type type, @Nonnull Expression[] arguments) Create array-constructor expressions.No explicit check, assuming that the input array is immutable.
-
getKind
- Specified by:
getKind
in classExpression
- See Also:
-
clone
- Specified by:
clone
in classExpression
-