|
antlraux package v0.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlraux.context.types.CommonType
A very basic implementation of Type. This class can be used
to modelize the basic types of a languaje (like int or float).
For more complex types, use a subclass, for example
DeclaredType
Field Summary | |
protected java.lang.String |
name
|
protected int |
tag
|
Fields inherited from interface antlraux.context.types.Type |
DEFAULT_NAME, DEFAULT_TAG |
Constructor Summary | |
CommonType()
|
|
CommonType(int tag,
java.lang.String name)
|
Method Summary | |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getName()
Returns the Type's name |
int |
getTag()
Returns the Type's tag |
void |
setName(java.lang.String s)
Sets the Type's name. |
void |
setTag(int tag)
Sets the Type's tag |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected int tag
Constructor Detail |
public CommonType()
public CommonType(int tag, java.lang.String name)
Method Detail |
public java.lang.String getName()
Type
getName
in interface Type
public int getTag()
Type
getTag
in interface Type
public void setName(java.lang.String s)
Type
setName
in interface Type
public void setTag(int tag)
Type
setTag
in interface Type
public boolean equals(java.lang.Object other)
equals
in interface Type
equals
in class java.lang.Object
public java.lang.String toString()
toString
in interface Type
toString
in class java.lang.Object
|
antlraux package v0.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |