org.aspectj.asm.internal
Class JDTLikeHandleProvider

java.lang.Object
  extended by org.aspectj.asm.internal.JDTLikeHandleProvider
All Implemented Interfaces:
IElementHandleProvider

public class JDTLikeHandleProvider
extends java.lang.Object
implements IElementHandleProvider

Creates JDT-like handles, for example method with string argument: ; an aspect:


Constructor Summary
JDTLikeHandleProvider(AsmManager asm)
           
 
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)
           
 boolean dependsOnLocation()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDTLikeHandleProvider

public JDTLikeHandleProvider(AsmManager asm)
Method Detail

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 interface IElementHandleProvider

createHandleIdentifier

public java.lang.String createHandleIdentifier(IProgramElement ipe)
Specified by:
createHandleIdentifier in interface IElementHandleProvider
Returns:
a String uniquely identifying this element

getFileForHandle

public java.lang.String getFileForHandle(java.lang.String handle)
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 interface IElementHandleProvider
Returns:
a String corresponding to the

getLineNumberForHandle

public int getLineNumberForHandle(java.lang.String handle)
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 interface IElementHandleProvider
Returns:
the line number corresponding to this handel

getOffSetForHandle

public int getOffSetForHandle(java.lang.String handle)
Specified by:
getOffSetForHandle in interface IElementHandleProvider

createHandleIdentifier

public java.lang.String createHandleIdentifier(ISourceLocation location)
Specified by:
createHandleIdentifier in interface IElementHandleProvider
Returns:
a String uniquely identifying this element

createHandleIdentifier

public java.lang.String createHandleIdentifier(java.io.File sourceFile,
                                               int line,
                                               int column,
                                               int offset)
Specified by:
createHandleIdentifier in interface IElementHandleProvider
Returns:
a String uniquely identifying this element

dependsOnLocation

public boolean dependsOnLocation()