public interface IRelationshipMap
extends java.io.Serializable
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()
Modifier and Type | Method and Description |
---|---|
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) |
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()