|
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 | +--antlraux.context.types.DeclaredType
This class is an extension of CommonType
that
implements ModifiedType
, so it implements a very basic
Type
with modifiers.
The real interest of this class is subclassing. See ClassType
.
Field Summary | |
protected java.util.HashSet |
modifiers
|
Fields inherited from class antlraux.context.types.CommonType |
name, tag |
Fields inherited from interface antlraux.context.types.Type |
DEFAULT_NAME, DEFAULT_TAG |
Constructor Summary | |
DeclaredType()
|
|
DeclaredType(int tag,
java.lang.String typeName)
|
Method Summary | |
void |
addModifier(java.lang.String modifier)
Adds a new modifier to the modifiers set |
void |
clearModifiers()
Clears all modifiers |
boolean |
compareModifiers(ModifiedType other)
Returns true if other has the same modifiers than "this" |
boolean |
equals(java.lang.Object other)
|
boolean |
hasModifier(java.lang.String modifierName)
Returns true if the Type has the modifier "modifierName" |
java.util.Enumeration |
modifiers()
Returns the modifier list in form of Enumeration |
java.util.Set |
modifiersSet()
Returns the modifiers set |
java.lang.String |
toString()
|
Methods inherited from class antlraux.context.types.CommonType |
getName, getTag, setName, setTag |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface antlraux.context.types.Type |
getName, getTag, setName, setTag |
Field Detail |
protected java.util.HashSet modifiers
Constructor Detail |
public DeclaredType()
public DeclaredType(int tag, java.lang.String typeName)
Method Detail |
public boolean hasModifier(java.lang.String modifierName)
ModifiedType
hasModifier
in interface ModifiedType
public void addModifier(java.lang.String modifier)
ModifiedType
addModifier
in interface ModifiedType
public void clearModifiers()
ModifiedType
clearModifiers
in interface ModifiedType
public java.util.Enumeration modifiers()
ModifiedType
modifiers
in interface ModifiedType
public java.util.Set modifiersSet()
ModifiedType
modifiersSet
in interface ModifiedType
public boolean equals(java.lang.Object other)
equals
in interface Type
equals
in class CommonType
public boolean compareModifiers(ModifiedType other)
ModifiedType
compareModifiers
in interface ModifiedType
public java.lang.String toString()
toString
in interface Type
toString
in class CommonType
|
antlraux package v0.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |