Package icyllis.arc3d.compiler.tree
Class ForLoop
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Statement
icyllis.arc3d.compiler.tree.ForLoop
for (init; condition; step)
loop-statement
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionForLoop(int position, Statement init, Expression condition, Expression step, Statement statement) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(TreeVisitor visitor) Visit this AST with a given visitor.static Statementconvert(Context context, int pos, Statement init, Expression cond, Expression step, Statement statement) getInit()getKind()getStep()static Statementmake(int pos, Statement init, Expression cond, Expression step, Statement statement) voidsetCondition(Expression condition) voidvoidsetStatement(Statement statement) voidsetStep(Expression step) toString()Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Constructor Details
-
ForLoop
public ForLoop(int position, Statement init, Expression condition, Expression step, Statement statement)
-
-
Method Details
-
convert
@Nullable public static Statement convert(@Nonnull Context context, int pos, Statement init, Expression cond, Expression step, Statement statement) -
make
public static Statement make(int pos, Statement init, Expression cond, Expression step, Statement statement) -
getKind
-
accept
Description copied from class:NodeVisit this AST with a given visitor. -
getInit
-
setInit
-
getCondition
-
setCondition
-
getStep
-
setStep
-
getStatement
-
setStatement
-
toString
-