org.granite.generator
Class Generator

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Transformer<?,?,?>>
              extended by org.granite.generator.Generator
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Transformer<?,?,?>>, Collection<Transformer<?,?,?>>, List<Transformer<?,?,?>>, RandomAccess

public class Generator
extends ArrayList<Transformer<?,?,?>>

Author:
Franck WOLFF
See Also:
Serialized Form

Field Summary
static String VERSION
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Generator()
           
Generator(Configuration config)
           
 
Method Summary
 void add(int index, Transformer<?,?,?> transformer)
           
 boolean add(Transformer<?,?,?> transformer)
           
 boolean addAll(Collection<? extends Transformer<?,?,?>> transformers)
           
 boolean addAll(int index, Collection<? extends Transformer<?,?,?>> transformers)
           
protected  boolean checkAdd(Transformer<?,?,?> transformer)
           
 Output<?>[] generate(Input<?> input)
           
 Configuration getConfig()
           
 Transformer<?,?,?> set(int index, Transformer<?,?,?> transformer)
           
 void setConfig(Configuration config)
           
protected  void updateTransformers()
           
 
Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

VERSION

public static final String VERSION
See Also:
Constant Field Values
Constructor Detail

Generator

public Generator()

Generator

public Generator(Configuration config)
Method Detail

getConfig

public Configuration getConfig()

setConfig

public void setConfig(Configuration config)

generate

public Output<?>[] generate(Input<?> input)
                     throws IOException,
                            GenerationException
Throws:
IOException
GenerationException

updateTransformers

protected void updateTransformers()

checkAdd

protected boolean checkAdd(Transformer<?,?,?> transformer)

add

public void add(int index,
                Transformer<?,?,?> transformer)
Specified by:
add in interface List<Transformer<?,?,?>>
Overrides:
add in class ArrayList<Transformer<?,?,?>>

add

public boolean add(Transformer<?,?,?> transformer)
Specified by:
add in interface Collection<Transformer<?,?,?>>
Specified by:
add in interface List<Transformer<?,?,?>>
Overrides:
add in class ArrayList<Transformer<?,?,?>>

addAll

public boolean addAll(Collection<? extends Transformer<?,?,?>> transformers)
Specified by:
addAll in interface Collection<Transformer<?,?,?>>
Specified by:
addAll in interface List<Transformer<?,?,?>>
Overrides:
addAll in class ArrayList<Transformer<?,?,?>>

addAll

public boolean addAll(int index,
                      Collection<? extends Transformer<?,?,?>> transformers)
Specified by:
addAll in interface List<Transformer<?,?,?>>
Overrides:
addAll in class ArrayList<Transformer<?,?,?>>

set

public Transformer<?,?,?> set(int index,
                              Transformer<?,?,?> transformer)
Specified by:
set in interface List<Transformer<?,?,?>>
Overrides:
set in class ArrayList<Transformer<?,?,?>>