Package icyllis.arc3d.compiler.tree
Class ConstructorScalarCast
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Expression
icyllis.arc3d.compiler.tree.ConstructorCall
icyllis.arc3d.compiler.tree.ConstructorScalarCast
Represents the construction of a scalar cast, such as `float(intVariable)`.
These always contain exactly 1 scalar of a differing type, and are never constant.
-
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 pos, @NonNull Type type, @NonNull List<Expression> args) @NonNull Expressioncopy(int position) getKind()static Expressionmake(@NonNull Context context, int position, Type type, Expression arg) 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 pos, @NonNull Type type, @NonNull List<Expression> args) -
make
-
getKind
- Specified by:
getKindin classExpression- See Also:
-
copy
- Specified by:
copyin classExpression
-