org.aspectj.asm.internal
Class Relationship

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.aspectj.asm.IRelationship
IRelationship.Kind
 
Constructor Summary
Relationship(java.lang.String name, IRelationship.Kind kind, java.lang.String sourceHandle, java.util.List<java.lang.String> targets, boolean runtimeTest)
           
 
Method Summary
 void addTarget(java.lang.String handle)
           
 IRelationship.Kind getKind()
           
 java.lang.String getName()
           
 java.lang.String getSourceHandle()
           
 java.util.List<java.lang.String> getTargets()
           
 boolean hasRuntimeTest()
           
 boolean isAffects()
          Return the direction of the relationship.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Relationship

public Relationship(java.lang.String name,
                    IRelationship.Kind kind,
                    java.lang.String sourceHandle,
                    java.util.List<java.lang.String> targets,
                    boolean runtimeTest)
Method Detail

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