Package org.aspectj.asm
Interface IElementHandleProvider
- All Known Implementing Classes:
JDTLikeHandleProvider
public interface IElementHandleProvider
Adapter used to uniquely identify program element handles. Can be implemented and overridden in @see{AsmManager} in order to
provide IDE-specific mechanisms of identifying elements. For example, AJDT uses workspace-relative paths that are understood by
its JavaCore class.
- Author:
- Mik Kersten
-
Method Summary
Modifier and TypeMethodDescriptioncreateHandleIdentifier
(File sourceFile, int line, int column, int offset) createHandleIdentifier
(ISourceLocation location) 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.
-
Method Details
-
createHandleIdentifier
- Returns:
- a String uniquely identifying this element
-
createHandleIdentifier
- Returns:
- a String uniquely identifying this element
-
createHandleIdentifier
- Returns:
- a String uniquely identifying this element
-
getFileForHandle
NOTE: this is necessary for the current implementation to look up nodes, but we may want to consider removing it.- Returns:
- a String corresponding to the
-
getLineNumberForHandle
NOTE: this is necessary for the current implementation to look up nodes, but we may want to consider removing it.- Returns:
- the line number corresponding to this handel
-
getOffSetForHandle
-
initialize
void initialize()Initializes handle provider state. The initializer is invoked when a new ASM is created on a full build.
-