public abstract class RangeArgs extends Object
range(...) expression in a {for ...}
loop statement.| Constructor and Description |
|---|
RangeArgs() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Optional<RangeArgs> |
createFromNode(ForNode node)
Returns a optional
RangeArgs object if the for loop expression is a range(...)
expression. |
abstract com.google.common.base.Optional<ExprNode> |
increment()
The expression for the iteration increment.
|
abstract ExprNode |
limit()
The expression for the iteration end point.
|
abstract com.google.common.base.Optional<ExprNode> |
start()
The expression for the iteration start point.
|
public static final com.google.common.base.Optional<RangeArgs> createFromNode(ForNode node)
RangeArgs object if the for loop expression is a range(...)
expression.public abstract com.google.common.base.Optional<ExprNode> start()
0.public abstract ExprNode limit()
public abstract com.google.common.base.Optional<ExprNode> increment()
1.