|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRelationshipMap
Maps from a program element handles to a list of relationships between that element and other program elements. Each element in
the list or relationships is uniquely identified by a kind and a relationship name. For example, the advice affecting a
particular shadow (e.g. method call) can be retrieved by calling get
on the handle for that method. Symmetrically
the method call shadows that an advice affects can be retrieved.
The elements can be stored and looked up as IProgramElement(s), in which cases the element corresponding to the handle is looked up in the containment hierarchy.
put/get methods taking IProgramElement as a parameter are for convenience only. They work identically to calling their counterparts with IProgramElement.getIdentifierHandle()
Method Summary | |
---|---|
void |
clear()
Clear all of the relationships in the map. |
java.util.List<IRelationship> |
get(IProgramElement sourceProgramElement)
|
IRelationship |
get(IProgramElement source,
IRelationship.Kind kind,
java.lang.String relationshipName)
Return a relationship matching the kind and name for the given element. |
IRelationship |
get(IProgramElement source,
IRelationship.Kind kind,
java.lang.String relationshipName,
boolean runtimeTest,
boolean createIfMissing)
Return a relationship matching the kind and name for the given element. |
java.util.List<IRelationship> |
get(java.lang.String sourceHandle)
|
IRelationship |
get(java.lang.String source,
IRelationship.Kind kind,
java.lang.String relationshipName,
boolean runtimeTest,
boolean createIfMissing)
Return a relationship matching the kind and name for the given element. |
java.util.Set<java.lang.String> |
getEntries()
|
void |
put(IProgramElement source,
IRelationship relationship)
|
void |
put(java.lang.String handle,
IRelationship relationship)
|
boolean |
remove(java.lang.String handle,
IRelationship relationship)
|
void |
removeAll(java.lang.String source)
|
Method Detail |
---|
java.util.List<IRelationship> get(IProgramElement sourceProgramElement)
java.util.List<IRelationship> get(java.lang.String sourceHandle)
IRelationship get(IProgramElement source, IRelationship.Kind kind, java.lang.String relationshipName, boolean runtimeTest, boolean createIfMissing)
IRelationship get(IProgramElement source, IRelationship.Kind kind, java.lang.String relationshipName)
IRelationship get(java.lang.String source, IRelationship.Kind kind, java.lang.String relationshipName, boolean runtimeTest, boolean createIfMissing)
void put(IProgramElement source, IRelationship relationship)
void put(java.lang.String handle, IRelationship relationship)
boolean remove(java.lang.String handle, IRelationship relationship)
void removeAll(java.lang.String source)
void clear()
java.util.Set<java.lang.String> getEntries()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |