Class ParsedExpressionVariable
java.lang.Object
org.openzen.zenscript.parser.expression.ParsedExpression
org.openzen.zenscript.parser.expression.ParsedExpressionVariable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openzen.zenscript.parser.expression.ParsedExpression
ParsedExpression.ParsingOptions -
Field Summary
FieldsFields inherited from class org.openzen.zenscript.parser.expression.ParsedExpression
position -
Constructor Summary
ConstructorsConstructorDescriptionParsedExpressionVariable(CodePosition position, String name, List<IParsedType> typeArguments) -
Method Summary
Modifier and TypeMethodDescriptioncompile(ExpressionScope scope) Compiles the given parsed expression to a high-level expression or partial expression.compileKey(ExpressionScope scope) compileToSwitchValue(TypeID type, ExpressionScope scope) booleanMethods inherited from class org.openzen.zenscript.parser.expression.ParsedExpression
isCompatibleWith, parse, parse
-
Field Details
-
name
-
-
Constructor Details
-
Method Details
-
compile
Description copied from class:ParsedExpressionCompiles the given parsed expression to a high-level expression or partial expression.If the asType parameter is provided, the given type determines the output type of the expression. The output type of the expression MUST in that case be equal to the given type.
- Specified by:
compilein classParsedExpression- Returns:
- Throws:
CompileException
-
compileKey
- Overrides:
compileKeyin classParsedExpression
-
compileToSwitchValue
- Overrides:
compileToSwitchValuein classParsedExpression- Throws:
CompileException
-
toLambdaHeader
- Overrides:
toLambdaHeaderin classParsedExpression
-
toLambdaParameter
- Overrides:
toLambdaParameterin classParsedExpression
-
hasStrongType
public boolean hasStrongType()- Specified by:
hasStrongTypein classParsedExpression
-