public abstract class SequenceExpressionNode extends Object implements ExpressionNode
| Modifier and Type | Class and Description |
|---|---|
class |
SequenceExpressionNode.Term
An inner class that defines a pair containing an ExpressionNode and a
boolean flag.
|
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<SequenceExpressionNode.Term> |
terms
the list of terms in the sequence
|
ADDITION_NODE, CONSTANT_NODE, EXPONENTIATION_NODE, FUNCTION_NODE, MULTIPLICATION_NODE, VARIABLE_NODE| Constructor and Description |
|---|
SequenceExpressionNode()
Default constructor.
|
SequenceExpressionNode(ExpressionNode node,
boolean positive)
Constructor to create a sequence with the first term already added.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ExpressionNode node,
boolean positive)
Add another term to the sequence
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, getType, getValueprotected ArrayList<SequenceExpressionNode.Term> terms
public SequenceExpressionNode()
public SequenceExpressionNode(ExpressionNode node, boolean positive)
node - the term to be addedpositive - a boolean flagpublic void add(ExpressionNode node, boolean positive)
node - the term to be addedpositive - a boolean flagCopyright © 2017. All rights reserved.