antlraux package
v0.2.1

antlraux.context.types
Interface ModifiedType

All Superinterfaces:
Type
All Known Implementing Classes:
ClassType, DeclaredType

public interface ModifiedType
extends Type

This interface represents a Type that has a set of modifiers in the form of strings (like "public", "static", etc).


Field Summary
 
Fields inherited from interface antlraux.context.types.Type
DEFAULT_NAME, DEFAULT_TAG
 
Method Summary
 void addModifier(java.lang.String modifierName)
          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 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
 
Methods inherited from interface antlraux.context.types.Type
equals, getName, getTag, setName, setTag, toString
 

Method Detail

addModifier

public void addModifier(java.lang.String modifierName)
Adds a new modifier to the modifiers set


hasModifier

public boolean hasModifier(java.lang.String modifierName)
Returns true if the Type has the modifier "modifierName"


clearModifiers

public void clearModifiers()
Clears all modifiers


modifiers

public java.util.Enumeration modifiers()
Returns the modifier list in form of Enumeration


modifiersSet

public java.util.Set modifiersSet()
Returns the modifiers set


compareModifiers

public boolean compareModifiers(ModifiedType other)
Returns true if other has the same modifiers than "this"


antlraux package
v0.2.1

Created by Enrique José García Cota