jdeparser 1.0.0.Final-redhat-1

org.jboss.jdeparser
Class JForEach

java.lang.Object
  extended by org.jboss.jdeparser.JForEach
All Implemented Interfaces:
JStatement

public final class JForEach
extends Object
implements JStatement

ForEach Statement This will generate the code for statement based on the new j2se 1.5 j.l.s.

Author:
Bhakti

Constructor Summary
JForEach(JType vartype, String variable, JExpression collection)
           
 
Method Summary
 JBlock body()
           
 void state(JFormatter f)
           
 JVar var()
          Returns a reference to the loop variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JForEach

public JForEach(JType vartype,
                String variable,
                JExpression collection)
Method Detail

var

public JVar var()
Returns a reference to the loop variable.


body

public JBlock body()

state

public void state(JFormatter f)
Specified by:
state in interface JStatement

jdeparser 1.0.0.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.