Groovy Documentation

java.gate.yam.parse
Class YamNode

java.lang.Object
  java.gate.yam.parse.YamNode

class YamNode

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

author:
Hamish Cunningham


Field Summary
String after

List argsList

Argument list for predicates.

String before

String body

String end

Token first

Tokens dominated by this node.

Token last

String start

Start, end, before, after body.

 
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 Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Field Detail

after

String after


argsList

List argsList
Argument list for predicates.


before

String before


body

String body


end

String end


first

Token first
Tokens dominated by this node.


last

Token last


start

String start
Start, end, before, after body.


 
Constructor Detail

YamNode

public YamNode()
Construction.


 
Method Detail

getAfter

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


getArgsList

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


getBefore

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


getBody

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


getEnd

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


getFirstToken

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


getLastToken

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


getStart

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


reset

public void reset()
Reset the output strings.


setAfter

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


setArgsList

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


setBefore

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


setBody

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


setEnd

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


setFirstToken

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


setLastToken

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


setStart

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


 

Groovy Documentation