Package org.aspectj.asm.internal
Class JDTLikeHandleProvider
java.lang.Object
org.aspectj.asm.internal.JDTLikeHandleProvider
- All Implemented Interfaces:
IElementHandleProvider
Creates JDT-like handles, for example
method with string argument: <tjp{Demo.java[Demo~main~\[QString; method with generic argument:
<pkg{MyClass.java[MyClass~myMethod~QList\<QString;>; an aspect: <pkg*A1.aj}A1 advice with Integer arg:
<pkg*A8.aj}A8&afterReturning&QInteger; method call: <pkg*A10.aj[C~m1?method-call(void pkg.C.m2())
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateHandleIdentifier
(File sourceFile, int line, int column, int offset) createHandleIdentifier
(ISourceLocation location) boolean
getFileForHandle
(String handle) NOTE: this is necessary for the current implementation to look up nodes, but we may want to consider removing it.int
getLineNumberForHandle
(String handle) NOTE: this is necessary for the current implementation to look up nodes, but we may want to consider removing it.int
getOffSetForHandle
(String handle) void
Initializes handle provider state.
-
Constructor Details
-
JDTLikeHandleProvider
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:IElementHandleProvider
Initializes handle provider state. The initializer is invoked when a new ASM is created on a full build.- Specified by:
initialize
in interfaceIElementHandleProvider
-
createHandleIdentifier
- Specified by:
createHandleIdentifier
in interfaceIElementHandleProvider
- Returns:
- a String uniquely identifying this element
-
getFileForHandle
Description copied from interface:IElementHandleProvider
NOTE: this is necessary for the current implementation to look up nodes, but we may want to consider removing it.- Specified by:
getFileForHandle
in interfaceIElementHandleProvider
- Returns:
- a String corresponding to the
-
getLineNumberForHandle
Description copied from interface:IElementHandleProvider
NOTE: this is necessary for the current implementation to look up nodes, but we may want to consider removing it.- Specified by:
getLineNumberForHandle
in interfaceIElementHandleProvider
- Returns:
- the line number corresponding to this handel
-
getOffSetForHandle
- Specified by:
getOffSetForHandle
in interfaceIElementHandleProvider
-
createHandleIdentifier
- Specified by:
createHandleIdentifier
in interfaceIElementHandleProvider
- Returns:
- a String uniquely identifying this element
-
createHandleIdentifier
- Specified by:
createHandleIdentifier
in interfaceIElementHandleProvider
- Returns:
- a String uniquely identifying this element
-
dependsOnLocation
public boolean dependsOnLocation()
-