Class ForStatement
java.lang.Object
org.jd.core.v1.model.javasyntax.statement.ForStatement
- Direct Known Subclasses:
ClassFileForStatement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expression
protected LocalVariableDeclaration
protected BaseExpression
protected BaseStatement
protected BaseExpression
-
Constructor Summary
ConstructorsConstructorDescriptionForStatement
(LocalVariableDeclaration declaration, Expression condition, BaseExpression update, BaseStatement statements) ForStatement
(BaseExpression init, Expression condition, BaseExpression update, BaseStatement statements) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(StatementVisitor visitor) getInit()
void
setCondition
(Expression condition) void
setDeclaration
(LocalVariableDeclaration declaration) void
setInit
(BaseExpression init) void
setUpdate
(BaseExpression update) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jd.core.v1.util.Base
getFirst, getLast, getList, isList, iterator, size
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
declaration
-
init
-
condition
-
update
-
statements
-
-
Constructor Details
-
ForStatement
public ForStatement(LocalVariableDeclaration declaration, Expression condition, BaseExpression update, BaseStatement statements) -
ForStatement
public ForStatement(BaseExpression init, Expression condition, BaseExpression update, BaseStatement statements)
-
-
Method Details
-
getDeclaration
-
setDeclaration
-
getInit
-
setInit
-
getCondition
-
setCondition
-
getUpdate
-
setUpdate
-
getStatements
-
accept
- Specified by:
accept
in interfaceBaseStatement
-
toString
-