Provide static utility methods for parsing AST member modifiers, e.g. public/protected/private, static, final, etc.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static boolean |
matchesAnyModifiers(java.lang.Integer actualModifiers, java.util.List<java.lang.Integer> expectedModifiersList) |
|
static boolean |
matchesModifiers(java.lang.Integer actualModifiers, java.lang.Integer expectedModifiers)Return true only if the actualModifiers int value contains all of the bits (enabled) from the expectedModifiers |
|
static int |
parseModifiers(java.lang.String modifiersString)Parse a group of whitespace-delimited modifier names |
|
static java.util.List<java.lang.Integer> |
parseModifiersList(java.lang.String modifiersString)Parse comma-separated list of modifier groups |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Return true only if the actualModifiers int value contains all of the bits (enabled) from the expectedModifiers
actualModifiers - - the full actual modifiers; an int value of the OR-ed modifiers (values from Opcodes)expectedModifiers - - the modifiers to check against; an int value of the OR-ed modifiers (values from Opcodes)Parse a group of whitespace-delimited modifier names
modifiersString - - a group of whitespace-delimited modifier namesParse comma-separated list of modifier groups
modifiersString - - comma-separated list of modifier groups;
each group is a list of whitespace-delimited modifier names;
e.g. "public, protected static, protected final"