CTL.Types
Class Reference<T>

java.lang.Object
  extended by CTL.Types.Reference<T>
All Implemented Interfaces:
Writable, TemplHack

public class Reference<T>
extends java.lang.Object
implements Writable, TemplHack

Implementation of ctl::reference in Java


Field Summary
private  boolean first
           
private static ObjectMap map
           
private  TypeTree type
           
private  long typeID
           
 
Constructor Summary
Reference(java.lang.Object obj)
           
 
Method Summary
static void cleanup()
           
static void debug()
           
 boolean equals(java.lang.Object moo)
           
 boolean first()
           
 T obj()
           
 void read(SerialIn in)
           
 void setTypes(TypeTree[] types)
           
 java.lang.String toString()
           
 long typeID()
           
static int unique()
           
 void write(SerialOut out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

map

private static ObjectMap map

first

private boolean first

typeID

private long typeID

type

private TypeTree type
Constructor Detail

Reference

public Reference(java.lang.Object obj)
Method Detail

setTypes

public void setTypes(TypeTree[] types)
Specified by:
setTypes in interface TemplHack

first

public boolean first()

equals

public boolean equals(java.lang.Object moo)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

cleanup

public static void cleanup()

debug

public static void debug()

typeID

public long typeID()

obj

public T obj()

unique

public static int unique()

read

public void read(SerialIn in)
          throws java.io.IOException,
                 java.lang.ClassNotFoundException,
                 java.lang.InstantiationException,
                 java.lang.IllegalAccessException,
                 java.lang.reflect.InvocationTargetException
Specified by:
read in interface Writable
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

write

public void write(SerialOut out)
           throws java.io.IOException,
                  java.lang.IllegalAccessException,
                  java.lang.reflect.InvocationTargetException,
                  CTLException
Specified by:
write in interface Writable
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException