gate.yam.parse
Class YamNode

java.lang.Object
  extended by gate.yam.parse.YamNode
Direct Known Subclasses:
SimpleNode

public class YamNode
extends Object

Parent of SimpleNode that adds state needed for YAM translators. This includes storing first/last tokens.

Author:
Hamish Cunningham

Constructor Summary
YamNode()
          Construction.
 
Method Summary
 String getAfter()
          Get the after output string for this node.
 List getArgsList()
          Get the predicate arguments list for this node.
 String getBefore()
          Get the before output string for this node.
 String getBody()
          Get the body output string for this node.
 String getEnd()
          Get the end output string for this node.
 Token getFirstToken()
          Get the first Token dominated by this node.
 Token getLastToken()
          Get the last Token dominated by this node.
 String getStart()
          Get the start output string for this node.
 void reset()
          Reset the output strings.
 void setAfter(String after)
          Set the after output string for this node.
 void setArgsList(List argsList)
          Set the predicate arguments list for this node.
 void setBefore(String before)
          Set the before output string for this node.
 void setBody(String body)
          Set the body output string for this node.
 void setEnd(String end)
          Set the end output string for this node.
 void setFirstToken(Token first)
          Set the first Token dominated by this node.
 void setLastToken(Token last)
          Set the last Token dominated by this node.
 void setStart(String start)
          Set the start output string for this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YamNode

public YamNode()
Construction.

Method Detail

getFirstToken

public Token getFirstToken()
Get the first Token dominated by this node.


setFirstToken

public void setFirstToken(Token first)
Set the first Token dominated by this node.


getLastToken

public Token getLastToken()
Get the last Token dominated by this node.


setLastToken

public void setLastToken(Token last)
Set the last Token dominated by this node.


getStart

public String getStart()
Get the start output string for this node.


setStart

public void setStart(String start)
Set the start output string for this node.


getEnd

public String getEnd()
Get the end output string for this node.


setEnd

public void setEnd(String end)
Set the end output string for this node.


getBefore

public String getBefore()
Get the before output string for this node.


setBefore

public void setBefore(String before)
Set the before output string for this node.


getAfter

public String getAfter()
Get the after output string for this node.


setAfter

public void setAfter(String after)
Set the after output string for this node.


getBody

public String getBody()
Get the body output string for this node.


setBody

public void setBody(String body)
Set the body output string for this node.


reset

public void reset()
Reset the output strings.


getArgsList

public List getArgsList()
Get the predicate arguments list for this node.


setArgsList

public void setArgsList(List argsList)
Set the predicate arguments list for this node.