public final class UnaryOperation extends 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.
|
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)
ExpressionNode
accept
in interface ExpressionNode
T
- the type of the visitorvisitor
- The visitorpublic UnaryOperator getOperator()
public ExpressionNode getTarget()
Copyright © 2017 The Apache Software Foundation. All rights reserved.