public final class NodeOperation extends Node
Constructor and Description |
---|
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, setUserData
public NodeOperation(T operation, Node... operands)
operation
- Operation identifier.operands
- Operands packed into an array of syntax elements.java.lang.NullPointerException
- 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 Node
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object