|
|||||||||
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 | +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.Expression | +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.expressions.TernaryExpression
The TernaryExpression
class represents the ternaryexpression
nodes in the abstract syntax tree.
Field Summary | |
Expression |
l
|
Expression |
m
|
Expression |
r
|
Constructor Summary | |
TernaryExpression(Expression l,
Expression m,
Expression r)
Creates a new ternary expression node with the given expressions l ,
m and r . |
Method Summary | |
void |
accept(Visitor v)
Method responsible for traversing the abstract syntax tree structure. |
void |
show(java.lang.String st)
Method responsible for displaying the ternary node. |
Methods inherited from class pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.AbstractSyntaxTree |
getLongestTypeAsSpacesString, getPreparedTypeAsString, getSpellingAndPosition, getTypeAsString, show |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Expression l
public Expression m
public Expression r
Constructor Detail |
public TernaryExpression(Expression l, Expression m, Expression r)
l
,
m
and r
.l
- any expression.m
- any expression.r
- any expression.Method Detail |
public void accept(Visitor v) throws EvalException
accept
in class AbstractSyntaxTree
v
- the visitor.EvalException
- if evaluation fails.Visitor
public void show(java.lang.String st)
show
in class AbstractSyntaxTree
st
- the string which is an auxiliary tabulator.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |