Class ParsedExpressionInt
java.lang.Object
org.openzen.zenscript.parser.expression.ParsedExpression
org.openzen.zenscript.parser.expression.ParsedExpressionInt
-
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
Constructors -
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) booleanstatic ParsedExpressionIntparsePrefixed(CodePosition position, String value) Methods inherited from class org.openzen.zenscript.parser.expression.ParsedExpression
compileKey, isCompatibleWith, parse, parse, toLambdaHeader, toLambdaParameter
-
Field Details
-
negative
public final boolean negative -
value
public final long value -
suffix
-
-
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- Parameters:
scope-- Returns:
- Throws:
CompileException
-
compileToSwitchValue
- Overrides:
compileToSwitchValuein classParsedExpression- Throws:
CompileException
-
hasStrongType
public boolean hasStrongType()- Specified by:
hasStrongTypein classParsedExpression