step10
Class type.T

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by step10.type.T
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess
Direct Known Subclasses:
type.BooleanT, type.DoubleT, type.IntegerT, type.ProcT, type.StringT
Enclosing class:
type

public abstract static class type.T
extends ArrayList

base class for typed branch nodes.

See Also:
Serialized Form

Field Summary
protected static HashMap map
          map TypeId to dummy subclass object which can be asked for type(), etc.
protected  Object type
          delegate pattern: decide type equality.
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected type.T()
           
protected type.T(Object type)
           
protected type.T(Object type, List sub)
           
 
Method Summary
protected abstract  String asString()
          describe type.
abstract  String toPrefix()
          returns type-specific prefix.
 Object type()
          returns object to decide type equality.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, 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

map

protected static final HashMap map
map TypeId to dummy subclass object which can be asked for type(), etc.


type

protected final Object type
delegate pattern: decide type equality.

Constructor Detail

type.T

protected type.T()

type.T

protected type.T(Object type)

type.T

protected type.T(Object type,
                 List sub)
Method Detail

toPrefix

public abstract String toPrefix()
returns type-specific prefix.


type

public final Object type()
returns object to decide type equality.


asString

protected abstract String asString()
describe type.