Class JForEach

  • All Implemented Interfaces:
    JStatement

    public final class JForEach
    extends java.lang.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

      Constructors 
      Constructor Description
      JForEach​(JType vartype, java.lang.String variable, JExpression collection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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,
                        java.lang.String variable,
                        JExpression collection)
    • Method Detail

      • var

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