Schnittstelle IHierarchy

Alle Superschnittstellen:
Serializable
Alle bekannten Implementierungsklassen:
AspectJElementHierarchy

public interface IHierarchy extends Serializable
Autor:
Mik Kersten, Andy Clement
  • Felddetails

  • Methodendetails

    • getElement

      IProgramElement getElement(String handle)
    • getRoot

      IProgramElement getRoot()
    • setRoot

      void setRoot(IProgramElement root)
    • addToFileMap

      void addToFileMap(String canonicalFilePath, IProgramElement compilationUnitProgramElement)
    • removeFromFileMap

      boolean removeFromFileMap(String canonicalFilePath)
    • setFileMap

      void setFileMap(Map<String,IProgramElement> fileMap)
    • setFileMap

      default void setFileMap(HashMap<String,IProgramElement> fileMap)
    • findInFileMap

      IProgramElement findInFileMap(String key)
    • getFileMapEntrySet

      Set<Map.Entry<String,IProgramElement>> getFileMapEntrySet()
    • isValid

      boolean isValid()
    • findElementForHandle

      IProgramElement findElementForHandle(String handle)
    • findElementForHandleOrCreate

      IProgramElement findElementForHandleOrCreate(String handle, boolean create)
    • findElementForSignature

      IProgramElement findElementForSignature(IProgramElement parent, IProgramElement.Kind kind, String signature)
      Returns the first match
      Parameter:
      parent -
      kind - not null
      Gibt zurück:
      null if not found
    • findElementForLabel

      IProgramElement findElementForLabel(IProgramElement parent, IProgramElement.Kind kind, String label)
      Returns the first match
      Parameter:
      parent -
      kind - not null
      Gibt zurück:
      null if not found
    • findElementForType

      IProgramElement findElementForType(String packageName, String typeName)
      Parameter:
      packageName - if null default package is searched
      typeName - can't be null
    • findElementForSourceFile

      IProgramElement findElementForSourceFile(String sourceFile)
      Parameter:
      sourceFile - modified to '/' delimited path for consistency
      Gibt zurück:
      a new structure node for the file if it was not found in the model
    • findElementForSourceLine

      IProgramElement findElementForSourceLine(ISourceLocation location)
      TODO: discriminate columns
    • findElementForSourceLine

      IProgramElement findElementForSourceLine(String sourceFilePath, int lineNumber)
      Never returns null
      Parameter:
      sourceFilePath - canonicalized path for consistency
      lineNumber - if 0 or 1 the corresponding file node will be returned
      Gibt zurück:
      a new structure node for the file if it was not found in the model
    • findElementForOffSet

      IProgramElement findElementForOffSet(String sourceFilePath, int lineNumber, int offSet)
    • getConfigFile

      String getConfigFile()
    • setConfigFile

      void setConfigFile(String configFile)
    • flushTypeMap

      void flushTypeMap()
    • flushHandleMap

      void flushHandleMap()
    • updateHandleMap

      void updateHandleMap(Set<String> deletedFiles)
    • findCloserMatchForLineNumber

      IProgramElement findCloserMatchForLineNumber(IProgramElement node, int lineno)
      For a specified node, check if any of the children more accurately represent the specified line.
      Parameter:
      node - where to start looking
      lineno - the line number
      Gibt zurück:
      any closer match below 'node' or null if nothing is a more accurate match
    • findNodeForSourceFile

      IProgramElement findNodeForSourceFile(IProgramElement node, String sourcefilePath)
      Discover the node representing a particular source file.
      Parameter:
      node - where in the model to start looking (usually the root on the initial call)
      sourcefilePath - the source file being searched for
      Gibt zurück:
      the node representing that source file or null if it cannot be found