|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.scheinerman.phoenix.interpreter.parser.ArgListNode
public class ArgListNode
Field Summary | |
---|---|
private boolean |
colonDelineated
|
private boolean |
commaDelineated
|
private java.util.ArrayList<ParserTreeNode> |
nodes
|
private boolean |
parenthesized
|
Constructor Summary | |
---|---|
ArgListNode()
|
Method Summary | |
---|---|
void |
add(ParserTreeNode node)
|
int |
getPrecedence()
Returns the precedence of the node in the order of operations, when it should be evaluated in the tree. |
Variable[] |
getVariables()
|
boolean |
isColonDelineated()
|
boolean |
isCommaDelineated()
|
boolean |
isParenthesized()
Returns true or false based on whether or not this node was encapsulated by parentheses. |
ParserTreeNode |
left()
Should be implemented to return the left child node of the current node. |
Variable |
operate()
Operates on this node to provide some sort of variable result dependent on the expression being parsed. |
ParserTreeNode |
right()
Should be implemented to return the right child node of the current node. |
void |
setColonDelineated(boolean colonDelineated)
|
void |
setCommaDelineated(boolean commaDelineated)
|
void |
setParenthesized(boolean parenthesized)
Sets whether or not this node is encapsulated by parentheses. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<ParserTreeNode> nodes
private boolean parenthesized
private boolean commaDelineated
private boolean colonDelineated
Constructor Detail |
---|
public ArgListNode()
Method Detail |
---|
public boolean isParenthesized()
ParserTreeNode
isParenthesized
in interface ParserTreeNode
public void setParenthesized(boolean parenthesized)
ParserTreeNode
setParenthesized
in interface ParserTreeNode
parenthesized
- - true
if this node is surrounded by parentheses, false
if not.public boolean isCommaDelineated()
public void setCommaDelineated(boolean commaDelineated)
public boolean isColonDelineated()
public void setColonDelineated(boolean colonDelineated)
public void add(ParserTreeNode node)
public Variable[] getVariables()
public Variable operate()
ParserTreeNode
operate
in interface ParserTreeNode
public java.lang.String toString()
toString
in class java.lang.Object
public ParserTreeNode left()
ParserTreeNode
left
in interface ParserTreeNode
public ParserTreeNode right()
ParserTreeNode
right
in interface ParserTreeNode
public int getPrecedence()
ParserTreeNode
getPrecedence
in interface ParserTreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |