public final class NodeOperation extends Node
| Constructor and Description |
|---|
NodeOperation(T operation,
DataType dataType,
java.util.List<? extends Node> operands)
Creates an operation node that has a variable number of operands (from 0 to infinity)
packed into a collection.
|
NodeOperation(T operation,
DataType dataType,
Node... operands)
Creates an operation node that has a variable number of operands (from 0 to infinity).
|
NodeOperation(T operation,
java.util.List<? extends Node> operands)
Creates an operation node that has a variable number of operands (from 0 to infinity)
packed into a collection.
|
NodeOperation(T operation,
Node... operands)
Creates an operation node that has a variable number of operands (from 0 to infinity).
|
| Modifier and Type | Method and Description |
|---|---|
Node |
deepCopy()
Creates a deep copy of the current objects.
|
boolean |
equals(java.lang.Object obj) |
DataType |
getDataType()
Returns an object that describes the type of the value referred by the node.
|
Node |
getOperand(int index)
Returns an operand by its index.
|
int |
getOperandCount()
Returns the number of operands.
|
java.util.List<Node> |
getOperands()
Returns an unmodifiable list of operands.
|
java.lang.Enum<?> |
getOperationId()
Returns an operation identifier.
|
int |
hashCode() |
java.lang.String |
toString() |
AND, getDataTypeId, getKind, getUserData, isType, isType, NOT, OR, setUserDatapublic NodeOperation(T operation,
Node... operands)
operation - Operation identifier.operands - Array of expression operands.java.lang.IllegalArgumentException - if any parameter (including every operand) is null.public NodeOperation(T operation,
DataType dataType,
Node... operands)
operation - Operation identifier.operands - Array of expression operands.dataType - Data type associated with the expression or null to rely
on automated type calculation.java.lang.IllegalArgumentException - if any parameter (including every operand) is null.public NodeOperation(T operation,
java.util.List<? extends Node> operands)
operation - Operation identifier.operands - List of expression operands.java.lang.IllegalArgumentException - if any parameter (including every operand) is null.public NodeOperation(T operation,
DataType dataType,
java.util.List<? extends Node> operands)
operation - Operation identifier.dataType - Data type associated with the expression or null to rely
on automated type calculation.operands - List of expression operands.java.lang.IllegalArgumentException - if any parameter (including every operand) is null.public Node deepCopy()
public int getOperandCount()
public Node getOperand(int index)
index - Index of the operand.public java.util.List<Node> getOperands()
public java.lang.Enum<?> getOperationId()
public DataType getDataType()
getDataType in class Nodepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object