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)
ExpressionNode
accept
in interface ExpressionNode
T
- the type of the visitorvisitor
- The visitorpublic UnaryOperator getOperator()
public ExpressionNode getTarget()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved