| com.pnfsoftware.jeb.core.units.code.java.IJavaFor |
Java AST interface used to represent a standard for loop statement. A for loop is a pre-tested loop, that consists of an initializer statement, a test predicate, a post-iteration statement, and a body.
Example:
for(initializer; predicate; poststm) {
// body
}
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract IJavaFor |
duplicate()
Duplicate this element.
| ||||||||||
| abstract IJavaBlock |
getBody()
Get the loop body.
| ||||||||||
| abstract IJavaStatement |
getInitializer()
Get the initializer statement.
| ||||||||||
| abstract IJavaStatement |
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(IJavaStatement initializer)
Set the loop initializer statement.
| ||||||||||
| abstract void |
setPostStatement(IJavaStatement 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.IJavaCompound
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaExpression
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaStatement
| |||||||||||
Duplicate this element.
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 |
|---|