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 TypeMethodDescriptionstatic @Nullable Expressionconvert(@NonNull Context context, int position, @NonNull Type type, @NonNull List<Expression> arguments) Create array-constructor expressions.@NonNull Expressioncopy(int position) getKind()static @NonNull Expressionmake(int position, @NonNull Type type, Expression @NonNull [] arguments) Create array-constructor expressions.Methods inherited from class icyllis.arc3d.compiler.tree.ConstructorCall
getArgument, getArguments, getComponentType, getConstantValue, isConstructorCall, toStringMethods inherited from class icyllis.arc3d.compiler.tree.Expression
accept, copy, getCoercionCost, getType, isBooleanLiteral, isFloatLiteral, isIncomplete, isIntLiteral, isLiteral, toStringMethods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Method Details
-
convert
public static @Nullable 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
public static @NonNull Expression make(int position, @NonNull Type type, Expression @NonNull [] arguments) Create array-constructor expressions.No explicit check, assuming that the input array is immutable.
-
getKind
- Specified by:
getKindin classExpression- See Also:
-
copy
- Specified by:
copyin classExpression
-