public final class UnaryOperation extends java.lang.Object implements ExpressionNode
!variableName).| Constructor and Description |
|---|
UnaryOperation(UnaryOperator operator,
ExpressionNode target)
Creates a
UnaryOperation. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> visitor)
Accept a visitor to process this node.
|
UnaryOperator |
getOperator()
Returns the operator applied in this operation.
|
ExpressionNode |
getTarget()
Returns the target to which the operation is applied.
|
java.lang.String |
toString() |
public UnaryOperation(UnaryOperator operator, ExpressionNode target)
UnaryOperation.operator - the operatortarget - the target to which the operator is appliedpublic <T> T accept(NodeVisitor<T> visitor)
ExpressionNodeaccept in interface ExpressionNodeT - the type of the visitorvisitor - The visitorpublic UnaryOperator getOperator()
public ExpressionNode getTarget()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 The Apache Software Foundation. All rights reserved.