edu.mit.ai.psg.jevaES
Interface IJevaNode

All Known Subinterfaces:
IExpressionNode, IExpressionStoreNode, IStatementNode
All Known Implementing Classes:
JevaNode

public abstract interface IJevaNode
extends Node

IJevaNode: extends Node with methods for accessing the tokens and for printing out the token stream for this node.


Method Summary
 Token getBeginToken()
          return the first token (in token chain) of the parsed syntax
 Token getEndToken()
          return the token after the last token of the parsed syntax
 void print(PrintWriter stream)
          Print tokens of parsed node's syntax, including children, to stream.
 void print(PrintWriter stream, boolean includeSpecialTokens)
           
 String printToString()
          Print tokens of parsed node's syntax, including children, to string.
 String printToString(boolean includeSpecialTokens)
           
 void setBeginToken(Token t)
          Called by the parser to set the first token of the parsed syntax
 void setEndToken(Token t)
          Called by the parser to set the last+1 token of the parsed syntax
 
Methods inherited from interface edu.mit.ai.psg.jevaES.Node
jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent
 

Method Detail

getBeginToken

public Token getBeginToken()
return the first token (in token chain) of the parsed syntax

getEndToken

public Token getEndToken()
return the token after the last token of the parsed syntax

setBeginToken

public void setBeginToken(Token t)
Called by the parser to set the first token of the parsed syntax

setEndToken

public void setEndToken(Token t)
Called by the parser to set the last+1 token of the parsed syntax

print

public void print(PrintWriter stream)
Print tokens of parsed node's syntax, including children, to stream. also prints special tokens (whitespace and comments)

print

public void print(PrintWriter stream,
                  boolean includeSpecialTokens)

printToString

public String printToString()
Print tokens of parsed node's syntax, including children, to string. Includes special tokens (whitespace and comments).
Returns:
a string recreating node's syntax

printToString

public String printToString(boolean includeSpecialTokens)

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-bugs@ai.mit.edu