Class ParsedExpressionString
java.lang.Object
org.openzen.zenscript.parser.expression.ParsedExpression
org.openzen.zenscript.parser.expression.ParsedExpressionString
-
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
ConstructorsConstructorDescriptionParsedExpressionString(CodePosition position, String value, boolean singleQuote) -
Method Summary
Modifier and TypeMethodDescriptioncompile(ExpressionScope scope) Compiles the given parsed expression to a high-level expression or partial expression.compileToSwitchValue(TypeID type, ExpressionScope scope) booleanMethods inherited from class org.openzen.zenscript.parser.expression.ParsedExpression
compileKey, isCompatibleWith, parse, parse, toLambdaHeader, toLambdaParameter
-
Field Details
-
value
-
singleQuote
public final boolean singleQuote
-
-
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:
-
compileToSwitchValue
- Overrides:
compileToSwitchValuein classParsedExpression- Throws:
CompileException
-
hasStrongType
public boolean hasStrongType()- Specified by:
hasStrongTypein classParsedExpression
-