Class ForStatement
- java.lang.Object
-
- org.jd.core.v1.model.javasyntax.statement.ForStatement
-
- All Implemented Interfaces:
java.lang.Iterable<Statement>
,BaseStatement
,Statement
,Base<Statement>
- Direct Known Subclasses:
ClassFileForStatement
public class ForStatement extends java.lang.Object implements Statement
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
condition
protected LocalVariableDeclaration
declaration
protected BaseExpression
init
protected BaseStatement
statements
protected BaseExpression
update
-
Constructor Summary
Constructors Constructor Description ForStatement(LocalVariableDeclaration declaration, Expression condition, BaseExpression update, BaseStatement statements)
ForStatement(BaseExpression init, Expression condition, BaseExpression update, BaseStatement statements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(StatementVisitor visitor)
Expression
getCondition()
LocalVariableDeclaration
getDeclaration()
BaseExpression
getInit()
BaseStatement
getStatements()
BaseExpression
getUpdate()
void
setCondition(Expression condition)
void
setDeclaration(LocalVariableDeclaration declaration)
void
setInit(BaseExpression init)
void
setUpdate(BaseExpression update)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
declaration
protected LocalVariableDeclaration declaration
-
init
protected BaseExpression init
-
condition
protected Expression condition
-
update
protected BaseExpression update
-
statements
protected BaseStatement statements
-
-
Constructor Detail
-
ForStatement
public ForStatement(LocalVariableDeclaration declaration, Expression condition, BaseExpression update, BaseStatement statements)
-
ForStatement
public ForStatement(BaseExpression init, Expression condition, BaseExpression update, BaseStatement statements)
-
-
Method Detail
-
getDeclaration
public LocalVariableDeclaration getDeclaration()
-
setDeclaration
public void setDeclaration(LocalVariableDeclaration declaration)
-
getInit
public BaseExpression getInit()
-
setInit
public void setInit(BaseExpression init)
-
getCondition
public Expression getCondition()
-
setCondition
public void setCondition(Expression condition)
-
getUpdate
public BaseExpression getUpdate()
-
setUpdate
public void setUpdate(BaseExpression update)
-
getStatements
public BaseStatement getStatements()
-
accept
public void accept(StatementVisitor visitor)
- Specified by:
accept
in interfaceBaseStatement
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-