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
ConstructorDescriptionForLoop
(int position, Statement init, Expression condition, Expression step, Statement statement) -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(TreeVisitor visitor) Visit this AST with a given visitor.static Statement
convert
(Context context, int pos, Statement init, Expression cond, Expression step, Statement statement) getInit()
getKind()
getStep()
static Statement
make
(int pos, Statement init, Expression cond, Expression step, Statement statement) void
setCondition
(Expression condition) void
void
setStatement
(Statement statement) void
setStep
(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:Node
Visit this AST with a given visitor. -
getInit
-
setInit
-
getCondition
-
setCondition
-
getStep
-
setStep
-
getStatement
-
setStatement
-
toString
-