|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.type.api.PType
The PType class defines the minimal information required to define a JORM type that belongs to a PTypeSpace. It should be derived for PType representing JORM classes. This derivation should be different between classes and generic classes.
Field Summary | |
static int |
NOSIZE
|
static short |
TYPECODE_BIGDECIMAL
|
static short |
TYPECODE_BIGINTEGER
|
static short |
TYPECODE_BOOLEAN
|
static short |
TYPECODE_BYTE
|
static short |
TYPECODE_BYTEARRAY
|
static short |
TYPECODE_CHAR
|
static short |
TYPECODE_CHARARRAY
|
static short |
TYPECODE_DATE
|
static short |
TYPECODE_DOUBLE
|
static short |
TYPECODE_FLOAT
|
static short |
TYPECODE_INT
|
static short |
TYPECODE_LONG
|
static short |
TYPECODE_OBJBOOLEAN
|
static short |
TYPECODE_OBJBYTE
|
static short |
TYPECODE_OBJCHAR
|
static short |
TYPECODE_OBJDOUBLE
|
static short |
TYPECODE_OBJFLOAT
|
static short |
TYPECODE_OBJINT
|
static short |
TYPECODE_OBJLONG
|
static short |
TYPECODE_OBJSHORT
|
static short |
TYPECODE_REFERENCE
|
static short |
TYPECODE_SERIALIZED
|
static short |
TYPECODE_SHORT
|
static short |
TYPECODE_STRING
|
Constructor Summary | |
protected |
PType(short typecode,
java.lang.String jormname,
java.lang.String javaname,
java.lang.String constname,
java.lang.String codingname)
It constructs the types that represent basic JORM types defined as constants within the PTypeSpace interface. |
protected |
PType(java.lang.String classname,
PTypeSpace typespace)
It constructs the types that represent JORM classes, be it generic or not. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getCodingName()
It retrieves the coding name associated to this PType. |
PType[] |
getDirectSubTypes()
Computes the array of direct sub type |
PType[] |
getInheritedPType()
It retrieves the PType directly inherited by a PType representing a JORM class. |
java.lang.String |
getJavaName()
It retrieves the Java name associated to this PType. |
java.lang.String |
getJormName()
It retrieves the JORM name associated to this PType. |
PType |
getNestedPType()
It retrieves the nested PType in case of a generic class PType. |
java.lang.String |
getProgName()
It retrieves the name of the associated constant for programming access. |
PTypeSpace |
getPTypeSpace()
It retrieves the type space associated to this PType. |
PType[] |
getSubTypes()
Retrieves all subtypes of this PType defined within its PTypeSpace. |
int |
getTypeCode()
It retrieves the code associated to this PType. |
boolean |
isa(PType pt)
It compares if the current PType conforms to the given PType. |
boolean |
isDirectSubType(PType parent)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NOSIZE
public static final short TYPECODE_BOOLEAN
public static final short TYPECODE_CHAR
public static final short TYPECODE_BYTE
public static final short TYPECODE_SHORT
public static final short TYPECODE_INT
public static final short TYPECODE_LONG
public static final short TYPECODE_FLOAT
public static final short TYPECODE_DOUBLE
public static final short TYPECODE_OBJBOOLEAN
public static final short TYPECODE_OBJCHAR
public static final short TYPECODE_OBJBYTE
public static final short TYPECODE_OBJSHORT
public static final short TYPECODE_OBJINT
public static final short TYPECODE_OBJLONG
public static final short TYPECODE_OBJFLOAT
public static final short TYPECODE_OBJDOUBLE
public static final short TYPECODE_STRING
public static final short TYPECODE_DATE
public static final short TYPECODE_CHARARRAY
public static final short TYPECODE_BYTEARRAY
public static final short TYPECODE_SERIALIZED
public static final short TYPECODE_BIGINTEGER
public static final short TYPECODE_BIGDECIMAL
public static final short TYPECODE_REFERENCE
Constructor Detail |
protected PType(short typecode, java.lang.String jormname, java.lang.String javaname, java.lang.String constname, java.lang.String codingname)
typecode
- The type code as defined within PType.jormname
- The JORM name of this basic type.javaname
- The Java associated with this basic type.constname
- The constant name for prog. access.protected PType(java.lang.String classname, PTypeSpace typespace)
classname
- The name of the class for which a PType must be
constructed.typespace
- The type space to which the constructed PType belongs.Method Detail |
public boolean isa(PType pt)
pt
- The PType to be compared with.
public boolean equals(java.lang.Object o)
public PType[] getInheritedPType()
public java.lang.String getJormName()
public java.lang.String getJavaName()
public java.lang.String getCodingName()
public java.lang.String getProgName()
public PType getNestedPType()
public PTypeSpace getPTypeSpace()
public PType[] getSubTypes()
public PType[] getDirectSubTypes()
public boolean isDirectSubType(PType parent)
public int getTypeCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |