Package org.teavm.ast
Class Statement
java.lang.Object
org.teavm.ast.Statement
- Direct Known Subclasses:
AssignmentStatement,BreakStatement,ConditionalStatement,ContinueStatement,GotoPartStatement,IdentifiedStatement,InitClassStatement,MonitorEnterStatement,MonitorExitStatement,ReturnStatement,SequentialStatement,ThrowStatement,TryCatchStatement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidacceptVisitor(StatementVisitor visitor) static AssignmentStatementstatic BlockStatementblock(Function<BlockStatement, Collection<Statement>> body) static Statementstatic Statementstatic Statementempty()static BreakStatementexitBlock(IdentifiedStatement identifiedStatement) static ReturnStatementstatic ReturnStatementexitFunction(Expr result) static InitClassStatementstatic WhileStatementloopWhile(Expr condition, Function<WhileStatement, Collection<Statement>> body) static ThrowStatementraiseException(Expr exception) static SequentialStatementstatic AssignmentStatementstatementExpr(Expr expr) static SwitchClauseswitchClause(int[] conditions, Statement... statements) static SwitchClauseswitchClause(int condition, Statement... statements) static SwitchStatementswitchStatement(Expr condition, List<Statement> defaultClause, SwitchClause... clauses)
-
Constructor Details
-
Statement
public Statement()
-
-
Method Details
-
acceptVisitor
-
empty
-
assign
-
statementExpr
-
exitFunction
-
exitFunction
-
sequence
-
block
-
exitBlock
-
loopWhile
public static WhileStatement loopWhile(Expr condition, Function<WhileStatement, Collection<Statement>> body) -
raiseException
-
cond
-
cond
-
initClass
-
switchStatement
public static SwitchStatement switchStatement(Expr condition, List<Statement> defaultClause, SwitchClause... clauses) -
switchClause
-
switchClause
-
doTry
-