Class ModifiersPattern
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.ModifiersPattern
- All Implemented Interfaces:
IHasPosition, IHasSourceLocation
-
Field Summary
FieldsFields inherited from class PatternNode
end, sourceContext, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data) booleanstatic intgetModifierFlag(String name) inthashCode()booleanmatches(int modifiers) static ModifiersPatterntoString()voidMethods inherited from class PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocationModifier and TypeMethodDescriptionvoidcopyLocationFrom(PatternNode other) intgetEnd()The ending index of this location in the character stream This points to the last character in this token.intgetStart()The starting index of this location in the character stream.voidreadLocation(ISourceContext context, DataInputStream s) voidsetLocation(ISourceContext sourceContext, int start, int end) traverse(PatternNodeVisitor visitor, Object data) void
-
Field Details
-
ANY
-
-
Constructor Details
-
ModifiersPattern
public ModifiersPattern(int requiredModifiers, int forbiddenModifiers)
-
-
Method Details
-
toString
-
equals
-
hashCode
-
matches
public boolean matches(int modifiers) -
read
- Throws:
IOException
-
write
- Specified by:
writein classPatternNode- Throws:
IOException
-
getModifierFlag
-
accept
- Specified by:
acceptin classPatternNode
-