|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An interface representing the type of a Token.
| Red (cxh) |
| Red (neuendor) |
| Field Summary | |
static int |
HASH_INVALID
Used to indicate that the type comparison cache is invalid |
static int |
HASH_MAX
|
| Method Summary | |
java.lang.Object |
clone()
Return a deep clone of this type. |
Token |
convert(Token token)
Convert the specified token into a token having the type represented by this object. |
boolean |
equals(java.lang.Object object)
Determine if the argument represents the same type as this object. |
java.lang.Class |
getTokenClass()
Return the class for tokens that this type represents. |
int |
getTypeHash()
Return a perfect hash for this type. |
boolean |
isCompatible(Type type)
Test if the argument type is compatible with this type. |
boolean |
isConstant()
Test if this Type is a constant. |
boolean |
isInstantiable()
Determine if this Type corresponds to an instantiable token class. |
boolean |
isSubstitutionInstance(Type type)
Return true if the specified type is a substitution instance of this type. |
java.lang.String |
toString()
Return the string representation of this type. |
| Field Detail |
public static final int HASH_INVALID
public static final int HASH_MAX
| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - If an instance cannot be cloned.
public Token convert(Token token)
throws IllegalActionException
token - a token.
IllegalActionException - If lossless conversion
cannot be done.public boolean equals(java.lang.Object object)
object - A Type.
public int getTypeHash()
public java.lang.Class getTokenClass()
public boolean isCompatible(Type type)
type - An instance of Type.
public boolean isConstant()
public boolean isInstantiable()
public boolean isSubstitutionInstance(Type type)
type - A Type.
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||