|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--step.typedef.Type
Abstraction of a STEP type.
Field Summary | |
static String |
ARRAY_EXTENSION
The name extension used for array types. |
Method Summary | |
boolean |
equals(Object o)
Compare two types for equality. |
Type |
getParent()
Get the parent of this type, if it is inherited. |
int |
hashCode()
Get a hash code for this type. |
boolean |
isArrayType()
Is this type an array type? |
boolean |
isParent(Type child)
|
void |
setParent(Type parent)
Set the parent for an inherited type. |
void |
setStepDL(String typeName)
Set the STEP-DL name for this type. |
Type |
toArrayType()
Get the array type with this type as its base. |
Type |
toBaseType()
If this is an array type, get the base type. |
String |
toStepDL()
Get the STEP-DL name for this type. |
String |
toString()
Get this type as a string. |
static Type |
v(StepObject o)
Get the type for the given object. |
static Type |
v(String name)
Get the unique type with the given name. |
static Type |
v(String name,
Package pkg)
Get the unique type with the given name in the given package. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String ARRAY_EXTENSION
Method Detail |
public static Type v(String name)
v(String,Package)
public static Type v(StepObject o)
v(String,Package)
public static Type v(String name, Package pkg)
public Type getParent()
null
if there is no parent.public void setParent(Type parent)
IllegalStateException
- if a parent has already been set for this type.
IllegalArgumentException
- if parent
is null
.public boolean isParent(Type child)
public boolean isArrayType()
public Type toArrayType()
public Type toBaseType()
IllegalStateException
- if the current type is not an array type.public boolean equals(Object o)
Two types are equal if they are the same object. This equality property is enforced by the creational pattern for types.
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public String toStepDL()
toStepDL
in interface StepDef
public void setStepDL(String typeName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |