com.threerings.presents.tools.cpp
Class CPPType

java.lang.Object
  extended by com.threerings.presents.tools.cpp.CPPType

public class CPPType
extends Object


Field Summary
 String cast
          CPP code to cast from this object to its reader type.
 CPPType dependent
          Another type embedded in this type, or null if it doesn't have an embedded type.
 String fixed
          If this is a fixed type and thereby doesn't need a type encoding on the wire.
 String interpreter
          The method on ObjectInputStream and ObjectOutputStream to interpret this type.
static String JAVA_LIST_FIXED
           
 boolean primitive
           
 Class<?> rawType
           
 String representationImport
           
 String type
          The full cpp type.
 
Constructor Summary
CPPType(Type javaType)
           
 
Method Summary
 String getAsStreamable(String name)
           
 String getCastFromStreamable(String name)
           
 String getWithoutShared()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_LIST_FIXED

public static final String JAVA_LIST_FIXED
See Also:
Constant Field Values

type

public final String type
The full cpp type.


interpreter

public final String interpreter
The method on ObjectInputStream and ObjectOutputStream to interpret this type.


cast

public final String cast
CPP code to cast from this object to its reader type.


fixed

public final String fixed
If this is a fixed type and thereby doesn't need a type encoding on the wire.


dependent

public final CPPType dependent
Another type embedded in this type, or null if it doesn't have an embedded type.


representationImport

public final String representationImport

rawType

public final Class<?> rawType

primitive

public final boolean primitive
Constructor Detail

CPPType

public CPPType(Type javaType)
Method Detail

getCastFromStreamable

public String getCastFromStreamable(String name)

getAsStreamable

public String getAsStreamable(String name)

getWithoutShared

public String getWithoutShared()


Copyright © 2011. All Rights Reserved.