|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PTypeSpace interface defines a space of JORM type along with the inheritance relationships that may exist between them.
Field Summary | |
static PType |
BIGDECIMAL
|
static PType |
BOOLEAN
|
static PType |
BYTE
|
static PType |
BYTEARRAY
|
static PType |
CHAR
|
static PType |
CHARARRAY
|
static PType |
DATE
|
static PType |
DOUBLE
|
static PType |
FLOAT
|
static PType |
INT
|
static PType |
LONG
|
static java.lang.String[][] |
NULLSUPERCLASSNAMES
|
static PType[] |
NULLSUPERTYPES
|
static PType |
OBJBOOLEAN
|
static PType |
OBJBYTE
|
static PType |
OBJCHAR
|
static PType |
OBJDOUBLE
|
static PType |
OBJFLOAT
|
static PType |
OBJINT
|
static PType |
OBJLONG
|
static PType |
OBJSHORT
|
static PType[] |
PREDEFINEDPTYPES
|
static PType |
REFTOP
|
static PType[] |
SCALARPTYPES
|
static PType |
SERIALIZED
|
static PType |
SHORT
|
static PType |
STRING
|
Method Summary | |
PType |
createPType(java.lang.String classname)
It creates a new PType for a JORM class that has no inherited class. |
PType |
createPType(java.lang.String[] gcnames,
PType ptype)
It creates a new PType for a JORM generic class instance. |
PType |
createPType(java.lang.String[] gcnames,
java.lang.String typename,
java.lang.String[][] superclassnames)
It creates a new PType for a JORM generic class instance. |
PType |
createPType(java.lang.String classname,
java.lang.String[][] superclassnames)
It creates a new PType for a JORM class. |
PType |
getPType(java.lang.String classname)
It tries to retrieve a PType representing a JORM class with the given class name. |
PType[] |
getSubTypes(PType pt)
Retrieves all subtypes of this PType defined within its PTypeSpace. |
boolean |
isa(PType pt1,
PType pt2)
It compares to PType representing JORM classes. |
Field Detail |
public static final PType BOOLEAN
public static final PType CHAR
public static final PType BYTE
public static final PType SHORT
public static final PType INT
public static final PType LONG
public static final PType FLOAT
public static final PType DOUBLE
public static final PType OBJBOOLEAN
public static final PType OBJCHAR
public static final PType OBJBYTE
public static final PType OBJSHORT
public static final PType OBJINT
public static final PType OBJLONG
public static final PType OBJFLOAT
public static final PType OBJDOUBLE
public static final PType STRING
public static final PType DATE
public static final PType CHARARRAY
public static final PType BYTEARRAY
public static final PType SERIALIZED
public static final PType BIGDECIMAL
public static final PType REFTOP
public static final PType[] PREDEFINEDPTYPES
public static final PType[] SCALARPTYPES
public static final PType[] NULLSUPERTYPES
public static final java.lang.String[][] NULLSUPERCLASSNAMES
Method Detail |
public PType createPType(java.lang.String classname) throws PExceptionTyping
classname
- The name of the JORM class.
PExceptionTyping
- Raised when a PType with this class name
exists with a different array of super
types.public PType createPType(java.lang.String classname, java.lang.String[][] superclassnames) throws PExceptionTyping
classname
- The name of the JORM class to be defined.superclassnames
- The hierarchy of of classes inherited by the
previous class (defined by classname) if any.
PExceptionTyping
- Raised when a PType with this class name
exists with a different array of super
types.public PType createPType(java.lang.String[] gcnames, PType ptype) throws PExceptionTyping
gcnames
- The array of names of the nested generic classes.ptype
- The PType of the type of the elements contained
within this generic class, which is one of those
defined inside PREDEFINEDPTYPES.
PExceptionTyping
- Raised when a PType with this class name
exists with a different inner PTypepublic PType createPType(java.lang.String[] gcnames, java.lang.String typename, java.lang.String[][] superclassnames) throws PExceptionTyping
gcnames
- The array of names of the nested generic
classes.typename
- The name of the type of the elements contained
within this generic class.superclassnames
- The hierarchy of of classes inherited by the
previous class (defined by typename) if any.
PExceptionTyping
- Raised when a PType with this class name
exists with a different inner PTypepublic PType getPType(java.lang.String classname)
classname
- The name of a JORM class the PType is looking for.
public PType[] getSubTypes(PType pt)
pt
- The concerned PType.
public boolean isa(PType pt1, PType pt2)
pt1
- The first JORM class PType.pt2
- The second JORM class PType.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |