public class ModifiersSet extends Object
Constructor and Description |
---|
ModifiersSet() |
Modifier and Type | Method and Description |
---|---|
void |
addModifier(ASModifier modifier)
Add another modifier keyword to the collection (and adjust the span
accordingly)
|
void |
addModifier(ModifierNode modifier)
Add another modifier keyword to the collection (and adjust the span
accordingly)
|
boolean |
equals(Object obj) |
ASModifier[] |
getAllModifiers() |
int |
getStart() |
boolean |
hasModifier(ASModifier modifier)
Is the given modifier in the set?
|
boolean |
hasModifiers() |
String |
toString()
For debugging only.
|
public void addModifier(ASModifier modifier)
modifier
- token holding modifier keywordpublic void addModifier(ModifierNode modifier)
modifier
- token holding modifier keywordpublic int getStart()
public boolean hasModifiers()
public ASModifier[] getAllModifiers()
public boolean hasModifier(ASModifier modifier)
Copyright © 2016 The Apache Software Foundation. All rights reserved.