Package org.aspectj.weaver.patterns
Klasse PatternParser
java.lang.Object
org.aspectj.weaver.patterns.PatternParser
- Autor:
- PARC, Adrian Colyer, Andy Clement
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPatternParser(String data) PatternParser(String data, ISourceContext context) PatternParser(ITokenSource tokenSource) Constructor for PatternParser. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidcheckEof()voidvoideatIdentifier(String expectedValue) booleanbooleanmaybeEatAdjacent(String token) booleanmaybeEatIdentifier(String expectedValue) String[]Parse type variable declarations for a generic method or at the start of a signature pointcut to identify type variable names in a generic type.booleanprotected ExactAnnotationTypePatternparseArgumentsPattern(boolean parameterAnnotationsPossible) parseCompoundMethodOrConstructorSignaturePattern(boolean isMethod) parseDeclareAtMethod(boolean isMethod) Attempt to parse a typeIs(<category>) construct.parseMaybeParenthesizedMethodOrConstructorSignaturePattern(boolean isMethod) parsePointcut(boolean shouldConsumeAllInput) parsePossibleStringSequence(boolean shouldEnd) parseSingleTypePattern(boolean insideTypeParameters) parseTypePattern(boolean insideTypeParameters, boolean parameterAnnotationsPossible) booleanvoidsetPointcutDesignatorHandlers(Set<PointcutDesignatorHandler> handlers, World world) only used by weaver tools API
-
Konstruktordetails
-
PatternParser
Constructor for PatternParser. -
PatternParser
-
PatternParser
-
-
Methodendetails
-
setPointcutDesignatorHandlers
only used by weaver tools API -
maybeParsePerClause
-
moreToParse
public boolean moreToParse() -
parseDeclare
-
parseDeclareAnnotation
-
parseDeclareAtType
-
parseDeclareAtMethod
-
parseDeclareAtField
-
parseCompoundFieldSignaturePattern
-
parseCompoundMethodOrConstructorSignaturePattern
-
parseDominates
-
parsePointcut
-
parsePointcut
-
parseSinglePointcut
-
parseAnnotationPointcut
-
parseDottedIdentifier
-
parseTypePattern
-
parseTypePattern
public TypePattern parseTypePattern(boolean insideTypeParameters, boolean parameterAnnotationsPossible) -
maybeParseAnnotationPattern
-
maybeParseSingleAnnotationPattern
-
parseAnnotationValues
-
parseSingleTypePattern
-
parseSingleTypePattern
-
parseHasMethodTypePattern
-
parseIsTypePattern
Attempt to parse a typeIs(<category>) construct. If it cannot be parsed we just return null and that should cause the caller to reset their position and attempt to consume it in another way. This means we won't have problems here: execution(* typeIs(..)) because someone has decided to call a method the same as our construct.- Gibt zurück:
- a TypeIsTypePattern or null if could not be parsed
-
parseHasFieldTypePattern
-
parseGenericsWildcardTypePattern
-
parseAnnotationNameOrVarTypePattern
-
parseDottedNamePattern
-
parseAnnotationNameValuePattern
-
parseNamePattern
-
parseModifiersPattern
-
parseArgumentsPattern
-
parseArgumentsAnnotationPattern
-
parseOptionalThrowsPattern
-
parseMethodOrConstructorSignaturePattern
-
parseMaybeParenthesizedFieldSignaturePattern
-
parseMaybeParenthesizedMethodOrConstructorSignaturePattern
public ISignaturePattern parseMaybeParenthesizedMethodOrConstructorSignaturePattern(boolean isMethod) -
parseFieldSignaturePattern
-
maybeParseTypeVariableList
Parse type variable declarations for a generic method or at the start of a signature pointcut to identify type variable names in a generic type.- Gibt zurück:
-
maybeParseSimpleTypeVariableList
-
maybeParseTypeParameterList
-
parseTypeVariable
-
parsePossibleStringSequence
-
parseStringLiteral
-
parseIdentifier
-
eatIdentifier
-
maybeEatIdentifier
-
eat
-
maybeEatAdjacent
-
maybeEat
-
maybeEatIdentifier
-
peek
-
checkEof
public void checkEof()
-