Package org.aspectj.asm.internal
Klasse AspectJElementHierarchy
java.lang.Object
org.aspectj.asm.internal.AspectJElementHierarchy
- Alle implementierten Schnittstellen:
Serializable,IHierarchy
- Autor:
- Mik Kersten, Andy Clement
- Siehe auch:
-
Feldübersicht
FelderVon Schnittstelle geerbte Felder org.aspectj.asm.IHierarchy
NO_STRUCTURE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddToFileMap(String key, IProgramElement value) protected voidcache(String handle, IProgramElement pe) findCloserMatchForLineNumber(IProgramElement node, int lineno) For a specified node, check if any of the children more accurately represent the specified line.findElementForHandle(String handle) findElementForHandleOrCreate(String handle, boolean create) findElementForLabel(IProgramElement parent, IProgramElement.Kind kind, String label) Returns the first matchfindElementForOffSet(String sourceFilePath, int lineNumber, int offSet) findElementForSignature(IProgramElement parent, IProgramElement.Kind kind, String signature) Returns the first matchfindElementForSourceFile(String sourceFile) findElementForSourceLine(String sourceFilePath, int lineNumber) Never returns nullfindElementForSourceLine(ISourceLocation location) TODO: discriminate columnsfindElementForType(String packageName, String typeName) Find the entry in the model that represents a particular type.findInFileMap(String key) findMatchingPackages(String packagename) Look for any package nodes matching the specified package name.findNodeForSourceFile(IProgramElement node, String sourcefilePath) Discover the node representing a particular source file.voidvoidvoidvoidforget(IProgramElement compilationUnitNode, IProgramElement typeNode) getElement(String handle) getRoot()booleanisValid()booleanremoveFromFileMap(String canonicalFilePath) voidsetAsmManager(AsmManager asm) voidsetConfigFile(String configFile) voidsetFileMap(Map<String, IProgramElement> fileMap) voidsetRoot(IProgramElement root) voidupdateHandleMap(Set<String> deletedFiles) Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.aspectj.asm.IHierarchy
setFileMap
-
Felddetails
-
root
-
configFile
-
-
Konstruktordetails
-
AspectJElementHierarchy
-
-
Methodendetails
-
getElement
- Angegeben von:
getElementin SchnittstelleIHierarchy
-
setAsmManager
-
getRoot
- Angegeben von:
getRootin SchnittstelleIHierarchy
-
toSummaryString
-
setRoot
- Angegeben von:
setRootin SchnittstelleIHierarchy
-
addToFileMap
- Angegeben von:
addToFileMapin SchnittstelleIHierarchy
-
removeFromFileMap
- Angegeben von:
removeFromFileMapin SchnittstelleIHierarchy
-
setFileMap
- Angegeben von:
setFileMapin SchnittstelleIHierarchy
-
findInFileMap
- Angegeben von:
findInFileMapin SchnittstelleIHierarchy
-
getFileMapEntrySet
- Angegeben von:
getFileMapEntrySetin SchnittstelleIHierarchy
-
isValid
public boolean isValid()- Angegeben von:
isValidin SchnittstelleIHierarchy
-
findElementForSignature
public IProgramElement findElementForSignature(IProgramElement parent, IProgramElement.Kind kind, String signature) Returns the first match- Angegeben von:
findElementForSignaturein SchnittstelleIHierarchy- Parameter:
parent-kind- not null- Gibt zurück:
- null if not found
-
findElementForLabel
public IProgramElement findElementForLabel(IProgramElement parent, IProgramElement.Kind kind, String label) Beschreibung aus Schnittstelle kopiert:IHierarchyReturns the first match- Angegeben von:
findElementForLabelin SchnittstelleIHierarchy- Parameter:
parent-kind- not null- Gibt zurück:
- null if not found
-
findElementForType
Find the entry in the model that represents a particular type.- Angegeben von:
findElementForTypein SchnittstelleIHierarchy- Parameter:
packageName- the package in which the type is declared or null for the default packagetypeName- the name of the type- Gibt zurück:
- the IProgramElement representing the type, or null if not found
-
findMatchingPackages
Look for any package nodes matching the specified package name. There may be multiple in the case where the types within a package are split across source folders.- Parameter:
packagename- the packagename being searched for- Gibt zurück:
- a list of package nodes that match that name
-
findElementForSourceFile
- Angegeben von:
findElementForSourceFilein SchnittstelleIHierarchy- 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
TODO: discriminate columns- Angegeben von:
findElementForSourceLinein SchnittstelleIHierarchy
-
findElementForSourceLine
Never returns null- Angegeben von:
findElementForSourceLinein SchnittstelleIHierarchy- Parameter:
sourceFilePath- canonicalized path for consistencylineNumber- 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
-
findNodeForSourceFile
Discover the node representing a particular source file.- Angegeben von:
findNodeForSourceFilein SchnittstelleIHierarchy- 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
-
findElementForOffSet
- Angegeben von:
findElementForOffSetin SchnittstelleIHierarchy
-
findCloserMatchForLineNumber
For a specified node, check if any of the children more accurately represent the specified line.- Angegeben von:
findCloserMatchForLineNumberin SchnittstelleIHierarchy- Parameter:
node- where to start lookinglineno- the line number- Gibt zurück:
- any closer match below 'node' or null if nothing is a more accurate match
-
getConfigFile
- Angegeben von:
getConfigFilein SchnittstelleIHierarchy
-
setConfigFile
- Angegeben von:
setConfigFilein SchnittstelleIHierarchy
-
findElementForHandle
- Angegeben von:
findElementForHandlein SchnittstelleIHierarchy
-
findElementForHandleOrCreate
- Angegeben von:
findElementForHandleOrCreatein SchnittstelleIHierarchy
-
cache
-
flushTypeMap
public void flushTypeMap()- Angegeben von:
flushTypeMapin SchnittstelleIHierarchy
-
flushHandleMap
public void flushHandleMap()- Angegeben von:
flushHandleMapin SchnittstelleIHierarchy
-
flushFileMap
public void flushFileMap() -
forget
-
updateHandleMap
- Angegeben von:
updateHandleMapin SchnittstelleIHierarchy
-