dk.brics.jwig.analysis.summarygraph
Class TemplateEdge

java.lang.Object
  |
  +--dk.brics.jwig.analysis.summarygraph.TemplateEdge

public class TemplateEdge
extends Object

Edge (associated with template plugs).


Constructor Summary
TemplateEdge(Node to, String gap, Collection origins)
          Constructs template edge.
TemplateEdge(Node to, String gap, Object origin)
          Constructs template edge.
 
Method Summary
 Object clone()
          Clones this edge.
 boolean equals(Object obj)
          Compares this edge with another.
 Node getDestination()
          Returns edge destination node.
 String getGap()
          Returns gap name.
 Collection getOrigins()
          Returns collection of origin objects.
 int hashCode()
          Computes a hashcode for this object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateEdge

public TemplateEdge(Node to,
                    String gap,
                    Collection origins)
Constructs template edge.

Parameters:
to - destination node
gap - gap name
origins - objects describing the edge

TemplateEdge

public TemplateEdge(Node to,
                    String gap,
                    Object origin)
Constructs template edge.

Parameters:
to - destination node
gap - gap name
origin - object describing the edge
Method Detail

clone

public Object clone()
Clones this edge.

Overrides:
clone in class Object
Returns:
shallow clone

equals

public boolean equals(Object obj)
Compares this edge with another.

Overrides:
equals in class Object
Returns:
true if the destination nodes of this edge and the given edge are identical and the node gap names are equal

getDestination

public Node getDestination()
Returns edge destination node.

Returns:
destination node

getGap

public String getGap()
Returns gap name.

Returns:
gap name

getOrigins

public Collection getOrigins()
Returns collection of origin objects.

Returns:
origin objects (should not be modified by the caller)

hashCode

public int hashCode()
Computes a hashcode for this object.

Overrides:
hashCode in class Object
Returns:
hash code based on destination node and gap name


Copyright © 2002 Anders Møller.