org.aspectj.asm.internal
Class Relationship
java.lang.Object
org.aspectj.asm.internal.Relationship
- All Implemented Interfaces:
- java.io.Serializable, IRelationship
public class Relationship
- extends java.lang.Object
- implements IRelationship
- See Also:
- Serialized Form
Constructor Summary |
Relationship(java.lang.String name,
IRelationship.Kind kind,
java.lang.String sourceHandle,
java.util.List<java.lang.String> targets,
boolean runtimeTest)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Relationship
public Relationship(java.lang.String name,
IRelationship.Kind kind,
java.lang.String sourceHandle,
java.util.List<java.lang.String> targets,
boolean runtimeTest)
getName
public java.lang.String getName()
- Specified by:
getName
in interface IRelationship
getKind
public IRelationship.Kind getKind()
- Specified by:
getKind
in interface IRelationship
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getSourceHandle
public java.lang.String getSourceHandle()
- Specified by:
getSourceHandle
in interface IRelationship
getTargets
public java.util.List<java.lang.String> getTargets()
- Specified by:
getTargets
in interface IRelationship
addTarget
public void addTarget(java.lang.String handle)
- Specified by:
addTarget
in interface IRelationship
hasRuntimeTest
public boolean hasRuntimeTest()
- Specified by:
hasRuntimeTest
in interface IRelationship
isAffects
public boolean isAffects()
- Return the direction of the relationship. It might be affects or affected-by. The direction enables the incremental model
repair code to do the right thing.
- Specified by:
isAffects
in interface IRelationship
- Returns:
- true if is an affects relationship: advises/declareson/softens/matchedby/declaredon/annotates