torero.gui
Class SrcAtt

java.lang.Object
  |
  +--torero.gui.SrcAtt

public class SrcAtt
extends Object

Helper Object used by NodeWrapper. It represents an unique key for sources of an attribute assignment.

See Also:
NodeWrapper, Production, ConnectTool

Field Summary
 Attribute att
          The attribute component of the key.
static int CHILD
          Source node is child of the destination node.
static int PARENT
          Source node is parent of the destination node.
static int RSIBLING
          Source node is the right neighbour of the destination node.
static int SELF
          Source node is the destination node.
static int SIBLING
          Source node is silbing of the destination node.
 int sourcetype
          The type of the key.
 GrammarNode src
          The gammarnode component of the key.
 
Constructor Summary
SrcAtt(GrammarNode src, Attribute att, int sourcetype)
           
 
Method Summary
 String toString()
          Only for testing and debugging purpose.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARENT

public static final int PARENT
Source node is parent of the destination node.

CHILD

public static final int CHILD
Source node is child of the destination node.

SIBLING

public static final int SIBLING
Source node is silbing of the destination node.

SELF

public static final int SELF
Source node is the destination node.

RSIBLING

public static final int RSIBLING
Source node is the right neighbour of the destination node.

src

public GrammarNode src
The gammarnode component of the key.

att

public Attribute att
The attribute component of the key.

sourcetype

public int sourcetype
The type of the key.
Constructor Detail

SrcAtt

public SrcAtt(GrammarNode src,
              Attribute att,
              int sourcetype)
Method Detail

toString

public String toString()
Only for testing and debugging purpose. Returns a textual representation of the SrcAtt.
Overrides:
toString in class Object