| com.pnfsoftware.jeb.core.units.code.java.IJavaFor |
Java AST interface used to represent a standard for loop statement.
A for loop is a kind of pre-tested loop, that consists of an initializer statement, a test predicate, a post-iteration statement, and a body.
for(initializer; predicate; poststm) body
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract IJavaBlock |
getBody()
Get the loop body.
| ||||||||||
| abstract IStatement |
getInitializer()
Get the initializer statement.
| ||||||||||
| abstract IStatement |
getPostStatement()
Get the post-iteration statement.
| ||||||||||
| abstract IJavaPredicate |
getPredicate()
Get the loop predicate.
| ||||||||||
| abstract void |
setBody(IJavaBlock b)
Set the loop post-iteration statement.
| ||||||||||
| abstract void |
setInitializer(IStatement initializer)
Set the loop initializer statement.
| ||||||||||
| abstract void |
setPostStatement(IStatement poststm)
Set the loop post-iteration statement.
| ||||||||||
| abstract void |
setPredicate(IJavaPredicate p)
Set the loop predicate.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.ICompound
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
| |||||||||||
Get the initializer statement.
Get the post-iteration statement.
Get the loop predicate.
Set the loop post-iteration statement.
| b | mandatory loop body |
|---|
Set the loop initializer statement.
| initializer | optional initializer |
|---|
Set the loop post-iteration statement.
| poststm | optional post-iteration statement |
|---|
Set the loop predicate.
| p | optional loop predicate |
|---|