org.rythmengine.template
Class TemplateBase.__Itr<T>

java.lang.Object
  extended by org.rythmengine.template.TemplateBase.__Itr<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>
Enclosing class:
TemplateBase

protected static class TemplateBase.__Itr<T>
extends Object
implements Iterable<T>

The helper class to facilitate generating code for the "for" loop in the template source


Field Summary
protected  Object _o
           
protected  int _size
           
protected  int cursor
           
protected  Iterator<T> iterator
           
 
Method Summary
 Iterator<T> iterator()
           
 int size()
           
static TemplateBase.__Itr<Boolean> valueOf(boolean[] ta)
           
static TemplateBase.__Itr<Byte> valueOf(byte[] ta)
           
static TemplateBase.__Itr<Character> valueOf(char[] ta)
           
static TemplateBase.__Itr<Double> valueOf(double[] ta)
           
static TemplateBase.__Itr<Float> valueOf(float[] ta)
           
static TemplateBase.__Itr<Integer> valueOf(int[] ta)
           
static
<T> TemplateBase.__Itr
valueOf(Iterable<T> tc)
           
static TemplateBase.__Itr<Long> valueOf(long[] ta)
           
static TemplateBase.__Itr valueOf(Object obj)
           
static
<T extends Comparable>
TemplateBase.__Itr<T>
valueOf(Range range)
           
static TemplateBase.__Itr<Short> valueOf(short[] ta)
           
static
<T> TemplateBase.__Itr<T>
valueOf(T[] ta)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_o

protected Object _o

_size

protected int _size

iterator

protected Iterator<T> iterator

cursor

protected int cursor
Method Detail

valueOf

public static <T> TemplateBase.__Itr<T> valueOf(T[] ta)

valueOf

public static TemplateBase.__Itr<Integer> valueOf(int[] ta)

valueOf

public static TemplateBase.__Itr<Long> valueOf(long[] ta)

valueOf

public static TemplateBase.__Itr<Float> valueOf(float[] ta)

valueOf

public static TemplateBase.__Itr<Double> valueOf(double[] ta)

valueOf

public static TemplateBase.__Itr<Short> valueOf(short[] ta)

valueOf

public static TemplateBase.__Itr<Character> valueOf(char[] ta)

valueOf

public static TemplateBase.__Itr<Byte> valueOf(byte[] ta)

valueOf

public static TemplateBase.__Itr<Boolean> valueOf(boolean[] ta)

valueOf

public static <T extends Comparable> TemplateBase.__Itr<T> valueOf(Range range)

valueOf

public static TemplateBase.__Itr valueOf(Object obj)

valueOf

public static <T> TemplateBase.__Itr valueOf(Iterable<T> tc)

size

public int size()

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>


Copyright © 2014. All Rights Reserved.