Schnittstelle IElementHandleProvider

Alle bekannten Implementierungsklassen:
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.
Autor:
Mik Kersten
  • Methodendetails

    • createHandleIdentifier

      String createHandleIdentifier(ISourceLocation location)
      Gibt zurück:
      a String uniquely identifying this element
    • createHandleIdentifier

      String createHandleIdentifier(File sourceFile, int line, int column, int offset)
      Gibt zurück:
      a String uniquely identifying this element
    • createHandleIdentifier

      String createHandleIdentifier(IProgramElement ipe)
      Gibt zurück:
      a String uniquely identifying this element
    • getFileForHandle

      String getFileForHandle(String handle)
      NOTE: this is necessary for the current implementation to look up nodes, but we may want to consider removing it.
      Gibt zurück:
      a String corresponding to the
    • getLineNumberForHandle

      int getLineNumberForHandle(String handle)
      NOTE: this is necessary for the current implementation to look up nodes, but we may want to consider removing it.
      Gibt zurück:
      the line number corresponding to this handel
    • getOffSetForHandle

      int getOffSetForHandle(String handle)
    • initialize

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