Top Fields Constructors Methods
org.aspectj.asm.internal

public Class RelationshipMap

extends HashMap<String, List<IRelationship>>
implements IRelationshipMap
Class Inheritance
All Implemented Interfaces
org.aspectj.asm.IRelationshipMap, java.io.Serializable
Imports
java.util.ArrayList, .HashMap, .List, .Set, org.aspectj.asm.IProgramElement, .IRelationship, .IRelationship.Kind, .IRelationshipMap

Authors
Mik Kersten, Andy Clement

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Overrides java.util.HashMap.clear.

Implements org.aspectj.asm.IRelationshipMap.clear, java.util.Map.clear.

Clear all of the relationships in the map.
public List<IRelationship>
public List<IRelationship>
public IRelationship
get(String source, IRelationship.Kind kind, String relationshipName, boolean runtimeTest, boolean createIfMissing)

Implements org.aspectj.asm.IRelationshipMap.get.

Return a relationship matching the kind and name for the given element.
public IRelationship
get(IProgramElement source, IRelationship.Kind kind, String relationshipName, boolean runtimeTest, boolean createIfMissing)

Implements org.aspectj.asm.IRelationshipMap.get.

Return a relationship matching the kind and name for the given element.
public IRelationship
get(IProgramElement source, IRelationship.Kind kind, String relationshipName)

Implements org.aspectj.asm.IRelationshipMap.get.

Return a relationship matching the kind and name for the given element.
public Set<String>
public void
put(String
key with which the specified value is to be associated
source
,
IRelationship
value to be associated with the specified key
relationship
)

Overrides java.util.HashMap.put.

Implements org.aspectj.asm.IRelationshipMap.put, java.util.Map.put.

Associates the specified value with the specified key in this map.
public void
put(IProgramElement
key with which the specified value is to be associated
source
,
IRelationship
value to be associated with the specified key
relationship
)

Overrides java.util.HashMap.put.

Implements org.aspectj.asm.IRelationshipMap.put, java.util.Map.put.

Associates the specified value with the specified key in this map.
public boolean
public void
Inherited from java.util.HashMap:
clonecomputecomputeIfAbsentcomputeIfPresentcontainsKeycontainsValueentrySetforEachgetgetOrDefaultisEmptykeySetmergenewHashMapputAllputIfAbsentremoveremovereplacereplacereplaceAllsizevalues

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.HashMap.serialVersionUID.

Constructor Detail

RelationshipMapback to summary
public RelationshipMap()

Method Detail

clearback to summary
public void clear()

Overrides java.util.HashMap.clear.

Implements org.aspectj.asm.IRelationshipMap.clear, java.util.Map.clear.

Doc from org.aspectj.asm.IRelationshipMap.clear.

Clear all of the relationships in the map.

getback to summary
public List<IRelationship> get(String handle)

Implements org.aspectj.asm.IRelationshipMap.get.

Returns:List<IRelationship>

Doc from org.aspectj.asm.IRelationshipMap.get.

list of relationships or null if the source element has no relationships

getback to summary
public List<IRelationship> get(IProgramElement source)

Implements org.aspectj.asm.IRelationshipMap.get.

Returns:List<IRelationship>

Doc from org.aspectj.asm.IRelationshipMap.get.

list of relationships or null if the source element has no relationships

getback to summary
public IRelationship get(String source, IRelationship.Kind kind, String relationshipName, boolean runtimeTest, boolean createIfMissing)

Implements org.aspectj.asm.IRelationshipMap.get.

Doc from org.aspectj.asm.IRelationshipMap.get.

Return a relationship matching the kind and name for the given element. Creates the relationship if not found.

Returns:IRelationship

null if the relationship is not found.

getback to summary
public IRelationship get(IProgramElement source, IRelationship.Kind kind, String relationshipName, boolean runtimeTest, boolean createIfMissing)

Implements org.aspectj.asm.IRelationshipMap.get.

Doc from org.aspectj.asm.IRelationshipMap.get.

Return a relationship matching the kind and name for the given element.

Returns:IRelationship

null if the relationship is not found.

getback to summary
public IRelationship get(IProgramElement source, IRelationship.Kind kind, String relationshipName)

Implements org.aspectj.asm.IRelationshipMap.get.

Doc from org.aspectj.asm.IRelationshipMap.get.

Return a relationship matching the kind and name for the given element.

Returns:IRelationship

null if the relationship is not found.

getEntriesback to summary
public Set<String> getEntries()

Implements org.aspectj.asm.IRelationshipMap.getEntries.

putback to summary
public void put(String source, IRelationship relationship)

Overrides java.util.HashMap.put.

Implements org.aspectj.asm.IRelationshipMap.put, java.util.Map.put.

Doc from java.util.HashMap.put.

Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.

Parameters
source:String

key with which the specified value is to be associated

relationship:IRelationship

value to be associated with the specified key

Returns:void

the previous value associated with key, or null if there was no mapping for key. (A null return can also indicate that the map previously associated null with key.)

putback to summary
public void put(IProgramElement source, IRelationship relationship)

Overrides java.util.HashMap.put.

Implements org.aspectj.asm.IRelationshipMap.put, java.util.Map.put.

Doc from java.util.HashMap.put.

Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.

Parameters
source:IProgramElement

key with which the specified value is to be associated

relationship:IRelationship

value to be associated with the specified key

Returns:void

the previous value associated with key, or null if there was no mapping for key. (A null return can also indicate that the map previously associated null with key.)

removeback to summary
public boolean remove(String source, IRelationship relationship)

Implements org.aspectj.asm.IRelationshipMap.remove.

removeAllback to summary
public void removeAll(String source)

Implements org.aspectj.asm.IRelationshipMap.removeAll.