Package org.aspectj.weaver.model
Klasse AsmRelationshipProvider
java.lang.Object
org.aspectj.weaver.model.AsmRelationshipProvider
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidaddAdvisedRelationship(AsmManager model, Shadow matchedShadow, ShadowMunger munger) static voidaddDeclareAnnotationFieldRelationship(AsmManager model, ISourceLocation declareLocation, String affectedTypeName, ResolvedMember affectedFieldName, boolean isRemove) Add a relationship for a matching declare ATfield.static voidaddDeclareAnnotationMethodRelationship(ISourceLocation sourceLocation, String affectedTypeName, ResolvedMember affectedMethod, AsmManager model) Add a relationship for a matching declare annotation method or declare annotation constructor.static voidaddDeclareAnnotationRelationship(AsmManager model, ISourceLocation declareAnnotationLocation, ISourceLocation annotatedLocation, boolean isRemove) Adds a declare annotation relationship, sometimes entities don't have source locs (methods/fields) so use other variants of this method if that is the case as they will look the entities up in the structure model.static voidaddDeclareErrorOrWarningRelationship(AsmManager model, Shadow affectedShadow, Checker deow) Add a relationship for a declare error or declare warningstatic voidaddRelationship(AsmManager model, ResolvedType onType, ResolvedTypeMunger typeTransformer, ResolvedType originatingAspect) Add a relationship for a type transformation (declare parents, intertype method declaration, declare annotation on type).static IProgramElementcreateFileStructureNode(AsmManager asm, String sourceFilePath) static voidcreateHierarchyForBinaryAspect(AsmManager asm, ShadowMunger munger) Creates the hierarchy for binary aspectsstatic StringgetHandle(AsmManager asm, Advice advice) protected static IProgramElementgetNode(AsmManager model, Shadow shadow)
-
Felddetails
-
ADVISES
- Siehe auch:
-
ADVISED_BY
- Siehe auch:
-
DECLARES_ON
- Siehe auch:
-
DECLAREDY_BY
- Siehe auch:
-
SOFTENS
- Siehe auch:
-
SOFTENED_BY
- Siehe auch:
-
MATCHED_BY
- Siehe auch:
-
MATCHES_DECLARE
- Siehe auch:
-
INTER_TYPE_DECLARES
- Siehe auch:
-
INTER_TYPE_DECLARED_BY
- Siehe auch:
-
ANNOTATES
- Siehe auch:
-
ANNOTATED_BY
- Siehe auch:
-
-
Konstruktordetails
-
AsmRelationshipProvider
public AsmRelationshipProvider()
-
-
Methodendetails
-
addDeclareErrorOrWarningRelationship
public static void addDeclareErrorOrWarningRelationship(AsmManager model, Shadow affectedShadow, Checker deow) Add a relationship for a declare error or declare warning -
addRelationship
public static void addRelationship(AsmManager model, ResolvedType onType, ResolvedTypeMunger typeTransformer, ResolvedType originatingAspect) Add a relationship for a type transformation (declare parents, intertype method declaration, declare annotation on type). -
createFileStructureNode
-
addDeclareAnnotationRelationship
public static void addDeclareAnnotationRelationship(AsmManager model, ISourceLocation declareAnnotationLocation, ISourceLocation annotatedLocation, boolean isRemove) Adds a declare annotation relationship, sometimes entities don't have source locs (methods/fields) so use other variants of this method if that is the case as they will look the entities up in the structure model. -
createHierarchyForBinaryAspect
Creates the hierarchy for binary aspects -
getHandle
-
addAdvisedRelationship
public static void addAdvisedRelationship(AsmManager model, Shadow matchedShadow, ShadowMunger munger) -
getNode
-
addDeclareAnnotationMethodRelationship
public static void addDeclareAnnotationMethodRelationship(ISourceLocation sourceLocation, String affectedTypeName, ResolvedMember affectedMethod, AsmManager model) Add a relationship for a matching declare annotation method or declare annotation constructor. Locating the method is a messy (for messy read 'fragile') bit of code that could break at any moment but it's working for my simple testcase. -
addDeclareAnnotationFieldRelationship
public static void addDeclareAnnotationFieldRelationship(AsmManager model, ISourceLocation declareLocation, String affectedTypeName, ResolvedMember affectedFieldName, boolean isRemove) Add a relationship for a matching declare ATfield. Locating the field is trickier than it might seem since we have no line number info for it, we have to dig through the structure model under the fields' type in order to locate it.
-