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.


Method Summary
 java.lang.String createHandleIdentifier(java.io.File sourceFile, int line, int column, int offset)
           
 java.lang.String createHandleIdentifier(IProgramElement ipe)
           
 java.lang.String createHandleIdentifier(ISourceLocation location)
           
 java.lang.String getFileForHandle(java.lang.String handle)
          NOTE: this is necessary for the current implementation to look up nodes, but we may want to consider removing it.
 int getLineNumberForHandle(java.lang.String handle)
          NOTE: this is necessary for the current implementation to look up nodes, but we may want to consider removing it.
 int getOffSetForHandle(java.lang.String handle)
           
 void initialize()
          Initializes handle provider state.
 

Method Detail

createHandleIdentifier

java.lang.String createHandleIdentifier(ISourceLocation location)
Returns:
a String uniquely identifying this element

createHandleIdentifier

java.lang.String createHandleIdentifier(java.io.File sourceFile,
                                        int line,
                                        int column,
                                        int offset)
Returns:
a String uniquely identifying this element

createHandleIdentifier

java.lang.String createHandleIdentifier(IProgramElement ipe)
Returns:
a String uniquely identifying this element

getFileForHandle

java.lang.String getFileForHandle(java.lang.String handle)
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

int getLineNumberForHandle(java.lang.String handle)
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

int getOffSetForHandle(java.lang.String handle)

initialize

void initialize()
Initializes handle provider state. The initializer is invoked when a new ASM is created on a full build.