|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.dynamicjava.tree.Node
koala.dynamicjava.tree.Expression
koala.dynamicjava.tree.ConditionalExpression
This class represents the binary expression nodes of the syntax tree
Field Summary | |
static java.lang.String |
CONDITION_EXPRESSION
The conditionExpression property name |
static java.lang.String |
IF_FALSE_EXPRESSION
The ifFalseExpression property name |
static java.lang.String |
IF_TRUE_EXPRESSION
The ifTrueExpression property name |
Fields inherited from class koala.dynamicjava.tree.Node |
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE, FILENAME |
Constructor Summary | |
ConditionalExpression(Expression cexp,
Expression texp,
Expression fexp)
Initializes the expression |
|
ConditionalExpression(Expression cexp,
Expression texp,
Expression fexp,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
Initializes the expression |
Method Summary | |
java.lang.Object |
acceptVisitor(Visitor visitor)
Allows a visitor to traverse the tree |
Expression |
getConditionExpression()
Returns the condition expression |
Expression |
getIfFalseExpression()
Returns the if false expression |
Expression |
getIfTrueExpression()
Returns the if true expression |
void |
setConditionExpression(Expression e)
Sets the condition expression |
void |
setIfFalseExpression(Expression e)
Sets the if false expression |
void |
setIfTrueExpression(Expression e)
Sets the if true expression |
Methods inherited from class koala.dynamicjava.tree.Node |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFilename, getProperties, getProperty, hasProperty, removePropertyChangeListener, removePropertyChangeListener, setBeginColumn, setBeginLine, setEndColumn, setEndLine, setFilename, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONDITION_EXPRESSION
public static final java.lang.String IF_TRUE_EXPRESSION
public static final java.lang.String IF_FALSE_EXPRESSION
Constructor Detail |
public ConditionalExpression(Expression cexp, Expression texp, Expression fexp)
cexp
- the condition expressiontexp
- the if true expressionfexp
- the if false expression
java.lang.IllegalArgumentException
- if cexp is null or texp is null or
fexp is nullpublic ConditionalExpression(Expression cexp, Expression texp, Expression fexp, java.lang.String fn, int bl, int bc, int el, int ec)
cexp
- the condition expressiontexp
- the if true expressionfexp
- the if false expressionfn
- the filenamebl
- the begin linebc
- the begin columnel
- the end lineec
- the end column
java.lang.IllegalArgumentException
- if cexp is null or texp is null or
fexp is nullMethod Detail |
public Expression getConditionExpression()
public void setConditionExpression(Expression e)
java.lang.IllegalArgumentException
- if e is nullpublic Expression getIfTrueExpression()
public void setIfTrueExpression(Expression e)
java.lang.IllegalArgumentException
- if e is nullpublic Expression getIfFalseExpression()
public void setIfFalseExpression(Expression e)
java.lang.IllegalArgumentException
- if e is nullpublic java.lang.Object acceptVisitor(Visitor visitor)
acceptVisitor
in class Node
visitor
- the visitor to accept
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |