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
Von Schnittstelle geerbte Felder org.aspectj.asm.IHierarchy
NO_STRUCTURE
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addToFileMap
(String key, IProgramElement value) protected void
cache
(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.void
void
void
void
forget
(IProgramElement compilationUnitNode, IProgramElement typeNode) getElement
(String handle) getRoot()
boolean
isValid()
boolean
removeFromFileMap
(String canonicalFilePath) void
setAsmManager
(AsmManager asm) void
setConfigFile
(String configFile) void
setFileMap
(Map<String, IProgramElement> fileMap) void
setRoot
(IProgramElement root) void
updateHandleMap
(Set<String> deletedFiles) Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.aspectj.asm.IHierarchy
setFileMap
-
Felddetails
-
root
-
configFile
-
-
Konstruktordetails
-
AspectJElementHierarchy
-
-
Methodendetails
-
getElement
- Angegeben von:
getElement
in SchnittstelleIHierarchy
-
setAsmManager
-
getRoot
- Angegeben von:
getRoot
in SchnittstelleIHierarchy
-
toSummaryString
-
setRoot
- Angegeben von:
setRoot
in SchnittstelleIHierarchy
-
addToFileMap
- Angegeben von:
addToFileMap
in SchnittstelleIHierarchy
-
removeFromFileMap
- Angegeben von:
removeFromFileMap
in SchnittstelleIHierarchy
-
setFileMap
- Angegeben von:
setFileMap
in SchnittstelleIHierarchy
-
findInFileMap
- Angegeben von:
findInFileMap
in SchnittstelleIHierarchy
-
getFileMapEntrySet
- Angegeben von:
getFileMapEntrySet
in SchnittstelleIHierarchy
-
isValid
public boolean isValid()- Angegeben von:
isValid
in SchnittstelleIHierarchy
-
findElementForSignature
public IProgramElement findElementForSignature(IProgramElement parent, IProgramElement.Kind kind, String signature) Returns the first match- Angegeben von:
findElementForSignature
in 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:IHierarchy
Returns the first match- Angegeben von:
findElementForLabel
in 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:
findElementForType
in 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:
findElementForSourceFile
in 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:
findElementForSourceLine
in SchnittstelleIHierarchy
-
findElementForSourceLine
Never returns null- Angegeben von:
findElementForSourceLine
in 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:
findNodeForSourceFile
in 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:
findElementForOffSet
in SchnittstelleIHierarchy
-
findCloserMatchForLineNumber
For a specified node, check if any of the children more accurately represent the specified line.- Angegeben von:
findCloserMatchForLineNumber
in 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:
getConfigFile
in SchnittstelleIHierarchy
-
setConfigFile
- Angegeben von:
setConfigFile
in SchnittstelleIHierarchy
-
findElementForHandle
- Angegeben von:
findElementForHandle
in SchnittstelleIHierarchy
-
findElementForHandleOrCreate
- Angegeben von:
findElementForHandleOrCreate
in SchnittstelleIHierarchy
-
cache
-
flushTypeMap
public void flushTypeMap()- Angegeben von:
flushTypeMap
in SchnittstelleIHierarchy
-
flushHandleMap
public void flushHandleMap()- Angegeben von:
flushHandleMap
in SchnittstelleIHierarchy
-
flushFileMap
public void flushFileMap() -
forget
-
updateHandleMap
- Angegeben von:
updateHandleMap
in SchnittstelleIHierarchy
-