NOSIZE
public static final int NOSIZE
- -1
TYPECODE_BIGDECIMAL
public static final short TYPECODE_BIGDECIMAL
- 22
TYPECODE_BIGINTEGER
public static final short TYPECODE_BIGINTEGER
- 21
TYPECODE_BOOLEAN
public static final short TYPECODE_BOOLEAN
- 0
TYPECODE_BYTE
public static final short TYPECODE_BYTE
- 2
TYPECODE_BYTEARRAY
public static final short TYPECODE_BYTEARRAY
- 19
TYPECODE_CHAR
public static final short TYPECODE_CHAR
- 1
TYPECODE_CHARARRAY
public static final short TYPECODE_CHARARRAY
- 18
TYPECODE_DATE
public static final short TYPECODE_DATE
- 17
TYPECODE_DOUBLE
public static final short TYPECODE_DOUBLE
- 7
TYPECODE_FLOAT
public static final short TYPECODE_FLOAT
- 6
TYPECODE_INT
public static final short TYPECODE_INT
- 4
TYPECODE_LONG
public static final short TYPECODE_LONG
- 5
TYPECODE_OBJBOOLEAN
public static final short TYPECODE_OBJBOOLEAN
- 8
TYPECODE_OBJBYTE
public static final short TYPECODE_OBJBYTE
- 10
TYPECODE_OBJCHAR
public static final short TYPECODE_OBJCHAR
- 9
TYPECODE_OBJDOUBLE
public static final short TYPECODE_OBJDOUBLE
- 15
TYPECODE_OBJFLOAT
public static final short TYPECODE_OBJFLOAT
- 14
TYPECODE_OBJINT
public static final short TYPECODE_OBJINT
- 12
TYPECODE_OBJLONG
public static final short TYPECODE_OBJLONG
- 13
TYPECODE_OBJSHORT
public static final short TYPECODE_OBJSHORT
- 11
TYPECODE_REFERENCE
public static final short TYPECODE_REFERENCE
- 23
TYPECODE_SERIALIZED
public static final short TYPECODE_SERIALIZED
- 20
TYPECODE_SHORT
public static final short TYPECODE_SHORT
- 3
TYPECODE_STRING
public static final short TYPECODE_STRING
- 16
PType
protected PType(String classname,
PTypeSpace typespace)
It constructs the types that represent JORM classes, be it generic or
not.
classname
- The name of the class for which a PType must be
constructed.typespace
- The type space to which the constructed PType belongs.
PType
protected PType(short typecode,
String jormname,
String javaname,
String constname,
String codingname)
It constructs the types that represent basic JORM types defined as
constants within the PTypeSpace interface.
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.
equals
public boolean equals(Object o)
getCodingName
public String getCodingName()
It retrieves the coding name associated to this PType.
- It returns the coding name.
getDirectSubTypes
public PType[] getDirectSubTypes()
Computes the array of direct sub type
getInheritedPType
public PType[] getInheritedPType()
It retrieves the PType directly inherited by a PType representing a
JORM class.
- The array of directly inherited PType.
getJavaName
public String getJavaName()
It retrieves the Java name associated to this PType.
- It returns the Java name.
getJormName
public String getJormName()
It retrieves the JORM name associated to this PType.
- It returns the JORM name.
getNestedPType
public PType getNestedPType()
It retrieves the nested PType in case of a generic class PType.
- The nested PType.
getPTypeSpace
public PTypeSpace getPTypeSpace()
It retrieves the type space associated to this PType.
- The associated type space.
getProgName
public String getProgName()
It retrieves the name of the associated constant for programming access.
- It returns the Java name.
getSubTypes
public PType[] getSubTypes()
Retrieves all subtypes of this PType defined within its PTypeSpace.
- The array of PType containing all these subtypes.
getTypeCode
public int getTypeCode()
It retrieves the code associated to this PType.
- It returns the Java name.
isDirectSubType
public boolean isDirectSubType(PType parent)
isa
public boolean isa(PType pt)
It compares if the current PType conforms to the given PType. In case
of PType representing JORM classes, the comparison is delegated to the
associated PTypeSpace.
pt
- The PType to be compared with.
- It returns true if this PType conforms to the one passed as
parameter.