org.codehaus.jparsec.examples.java.ast.statement
Class ForeachStatement

java.lang.Object
  extended by org.codehaus.jparsec.examples.common.ValueObject
      extended by org.codehaus.jparsec.examples.java.ast.statement.ForeachStatement
All Implemented Interfaces:
Statement

public final class ForeachStatement
extends ValueObject
implements Statement

Represents the enhanced for loop statement.

Author:
Ben Yu

Field Summary
 Expression of
           
 Statement statement
           
 TypeLiteral type
           
 String var
           
 
Constructor Summary
ForeachStatement(TypeLiteral type, String var, Expression of, Statement statement)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class org.codehaus.jparsec.examples.common.ValueObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public final TypeLiteral type

var

public final String var

of

public final Expression of

statement

public final Statement statement
Constructor Detail

ForeachStatement

public ForeachStatement(TypeLiteral type,
                        String var,
                        Expression of,
                        Statement statement)
Method Detail

toString

public String toString()
Overrides:
toString in class ValueObject


Copyright © 2014. All rights reserved.