Top Description Methods
org.aspectj.asm

public Interface IElementHandleProvider

Known Direct Implementers
org.aspectj.asm.internal.JDTLikeHandleProvider
Imports
java.io.File, org.aspectj.bridge.ISourceLocation

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 TypeMethod and Description
public String

Returns:

a String uniquely identifying this element
createHandleIdentifier
(ISourceLocation location)

public String

Returns:

a String uniquely identifying this element
createHandleIdentifier
(File sourceFile, int line, int column, int offset)

public String

Returns:

a String uniquely identifying this element
createHandleIdentifier
(IProgramElement ipe)

public String

Returns:

a String corresponding to the
getFileForHandle
(String handle)

Note

this is necessary for the current implementation to look up nodes, but we may want to consider removing it.

public int

Returns:

the line number corresponding to this handel
getLineNumberForHandle
(String handle)

Note

this is necessary for the current implementation to look up nodes, but we may want to consider removing it.

public int
public void
initialize()

Initializes handle provider state.

Method Detail

createHandleIdentifierback to summary
public String createHandleIdentifier(ISourceLocation location)
Returns:String

a String uniquely identifying this element

createHandleIdentifierback to summary
public String createHandleIdentifier(File sourceFile, int line, int column, int offset)
Returns:String

a String uniquely identifying this element

createHandleIdentifierback to summary
public String createHandleIdentifier(IProgramElement ipe)
Returns:String

a String uniquely identifying this element

getFileForHandleback to summary
public String getFileForHandle(String handle)

Note

this is necessary for the current implementation to look up nodes, but we may want to consider removing it.

Returns:String

a String corresponding to the

getLineNumberForHandleback to summary
public int getLineNumberForHandle(String handle)

Note

this is necessary for the current implementation to look up nodes, but we may want to consider removing it.

Returns:int

the line number corresponding to this handel

getOffSetForHandleback to summary
public int getOffSetForHandle(String handle)
initializeback to summary
public void initialize()

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