Class ParsedStatement
java.lang.Object
org.openzen.zenscript.parser.statements.ParsedStatement
- Direct Known Subclasses:
ParsedStatementBlock,ParsedStatementBreak,ParsedStatementContinue,ParsedStatementDoWhile,ParsedStatementExpression,ParsedStatementForeach,ParsedStatementIf,ParsedStatementLock,ParsedStatementReturn,ParsedStatementSwitch,ParsedStatementThrow,ParsedStatementTryCatch,ParsedStatementVar,ParsedStatementWhile
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ParsedAnnotation[]final CodePositionfinal WhitespaceInfo -
Constructor Summary
ConstructorsConstructorDescriptionParsedStatement(CodePosition position, ParsedAnnotation[] annotations, WhitespaceInfo whitespace) -
Method Summary
Modifier and TypeMethodDescriptioncompile(List<ParsedStatement> statements, StatementScope scope) abstract Statementcompile(StatementScope scope) static ParsedStatementparse(ZSTokenParser parser) static ParsedStatementparse(ZSTokenParser parser, ParsedAnnotation[] annotations) static ParsedStatementparse(ZSTokenParser parser, ParsedAnnotation[] annotations, boolean isFirst) static ParsedStatementBlockparseBlock(ZSTokenParser parser, ParsedAnnotation[] annotations, boolean isFirst) static ParsedFunctionBodyparseFunctionBody(ZSTokenParser tokens) static ParsedFunctionBodyparseLambdaBody(ZSTokenParser tokens, boolean inExpression) protected Statementresult(Statement statement, StatementScope scope)
-
Field Details
-
position
-
annotations
-
whitespace
-
-
Constructor Details
-
Method Details
-
parseLambdaBody
public static ParsedFunctionBody parseLambdaBody(ZSTokenParser tokens, boolean inExpression) throws ParseException - Throws:
ParseException
-
parseFunctionBody
- Throws:
ParseException
-
parseBlock
public static ParsedStatementBlock parseBlock(ZSTokenParser parser, ParsedAnnotation[] annotations, boolean isFirst) throws ParseException - Throws:
ParseException
-
parse
- Throws:
ParseException
-
parse
public static ParsedStatement parse(ZSTokenParser parser, ParsedAnnotation[] annotations) throws ParseException - Throws:
ParseException
-
parse
public static ParsedStatement parse(ZSTokenParser parser, ParsedAnnotation[] annotations, boolean isFirst) throws ParseException - Throws:
ParseException
-
compile
-
compile
-
result
-