|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.AbstractSyntaxTree
The Expression
class represents the abstract syntax tree.
Constructor Summary | |
AbstractSyntaxTree()
|
Method Summary | |
abstract void |
accept(Visitor v)
Method responsible for traversing the abstract syntax tree structure. |
java.lang.String |
getLongestTypeAsSpacesString()
Returns the space string, which size is equal to the name of the longest type name. |
java.lang.String |
getPreparedTypeAsString()
Returns the prepared type name for display. |
abstract java.lang.String |
getSpellingAndPosition()
Returns the spelling and positions of all terminals in a node. |
abstract java.lang.String |
getTypeAsString()
Returns the abstract syntax tree node type as a string value. |
void |
show()
Method responsible for displaying the abstract syntax tree structure. |
abstract void |
show(java.lang.String st)
Method responsible for displaying the abstract syntax tree structure. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractSyntaxTree()
Method Detail |
public abstract java.lang.String getTypeAsString()
public abstract void accept(Visitor v) throws EvalException
v
- the visitor.EvalException
- if evaluation fails.Visitor
public abstract java.lang.String getSpellingAndPosition()
public java.lang.String getLongestTypeAsSpacesString()
public java.lang.String getPreparedTypeAsString()
public abstract void show(java.lang.String st)
st
- the string which is an auxiliary tabulator.public void show()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |