Interface IModifierHolder
-
- All Known Implementing Classes:
CompoundTypeDescriptor.SlotDescriptor,ImplicitVariableDeclaration,ImplicitVariableDeclaration,JoinVariableDeclaration,VariableDeclaration,VariableDeclaration,VariableDeclaration
public interface IModifierHolderDefines the interface of a class holding modifiers.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IModifiergetModifier(int index)Returns the specified modifier.intgetModifierCount()Returns the number of modifiers.booleanhasModifier(IModifier modifier)Returns whether this variable declaration has a givenmodifier.
-
-
-
Method Detail
-
getModifierCount
int getModifierCount()
Returns the number of modifiers.- Returns:
- the number of modifiers
-
getModifier
IModifier getModifier(int index)
Returns the specified modifier.- Parameters:
index- the 0-based index of the modifier to return- Returns:
- the specified modifier
- Throws:
java.lang.IndexOutOfBoundsException- ifindex < 0 || index &get;=getModifierCount()
-
hasModifier
boolean hasModifier(IModifier modifier)
Returns whether this variable declaration has a givenmodifier.- Parameters:
modifier- the modifier to search for- Returns:
trueif this variable declaration has themodifierattached,falseelse
-
-