org.aspectj.asm.internal
Class RelationshipMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.util.List<IRelationship>>
org.aspectj.asm.internal.RelationshipMap
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.util.List<IRelationship>>, IRelationshipMap
public class RelationshipMap
- extends java.util.HashMap<java.lang.String,java.util.List<IRelationship>>
- implements IRelationshipMap
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Method Summary |
void |
clear()
Clear all of the relationships in the map. |
java.util.List<IRelationship> |
get(IProgramElement source)
|
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 handle)
|
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 source,
IRelationship relationship)
|
boolean |
remove(java.lang.String source,
IRelationship relationship)
|
void |
removeAll(java.lang.String source)
|
Methods inherited from class java.util.HashMap |
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
RelationshipMap
public RelationshipMap()
get
public java.util.List<IRelationship> get(java.lang.String handle)
- Specified by:
get
in interface IRelationshipMap
- Returns:
- list of relationships or null if the source element has no relationships
get
public java.util.List<IRelationship> get(IProgramElement source)
- Specified by:
get
in interface IRelationshipMap
- Returns:
- list of relationships or null if the source element has no relationships
get
public IRelationship get(java.lang.String source,
IRelationship.Kind kind,
java.lang.String relationshipName,
boolean runtimeTest,
boolean createIfMissing)
- Description copied from interface:
IRelationshipMap
- Return a relationship matching the kind and name for the given element. Creates the relationship if not found.
- Specified by:
get
in interface IRelationshipMap
- Returns:
- null if the relationship is not found.
get
public IRelationship get(IProgramElement source,
IRelationship.Kind kind,
java.lang.String relationshipName,
boolean runtimeTest,
boolean createIfMissing)
- Description copied from interface:
IRelationshipMap
- Return a relationship matching the kind and name for the given element.
- Specified by:
get
in interface IRelationshipMap
- Returns:
- null if the relationship is not found.
get
public IRelationship get(IProgramElement source,
IRelationship.Kind kind,
java.lang.String relationshipName)
- Description copied from interface:
IRelationshipMap
- Return a relationship matching the kind and name for the given element.
- Specified by:
get
in interface IRelationshipMap
- Returns:
- null if the relationship is not found.
remove
public boolean remove(java.lang.String source,
IRelationship relationship)
- Specified by:
remove
in interface IRelationshipMap
removeAll
public void removeAll(java.lang.String source)
- Specified by:
removeAll
in interface IRelationshipMap
put
public void put(java.lang.String source,
IRelationship relationship)
- Specified by:
put
in interface IRelationshipMap
put
public void put(IProgramElement source,
IRelationship relationship)
- Specified by:
put
in interface IRelationshipMap
clear
public void clear()
- Description copied from interface:
IRelationshipMap
- Clear all of the relationships in the map.
- Specified by:
clear
in interface java.util.Map<java.lang.String,java.util.List<IRelationship>>
- Specified by:
clear
in interface IRelationshipMap
- Overrides:
clear
in class java.util.HashMap<java.lang.String,java.util.List<IRelationship>>
getEntries
public java.util.Set<java.lang.String> getEntries()
- Specified by:
getEntries
in interface IRelationshipMap