name:
src/main/java/io/protobase/f7/models/UnaryPlusOperationNode.java
-rw-r--r--
741
1package io.protobase.f7.models;
2
3import com.google.common.base.MoreObjects;
4
5/**
6 * Unary plus operation.
7 */
8public class UnaryPlusOperationNode extends BaseObject implements Node {
9 private Node operand;
10
11 /**
12 * Create new node with an operand.
13 *
14 * @param operand value
15 */
16 public UnaryPlusOperationNode(Node operand) {
17 this.operand = operand;
18 }
19
20 /**
21 * Get the operand node.
22 *
23 * @return node.
24 */
25 public Node getOperand() {
26 return operand;
27 }
28
29 @Override
30 public String toString() {
31 return MoreObjects.toStringHelper(this)
32 .add("operand", operand)
33 .toString();
34 }
35
36 @Override
37 public Object[] significantAttributes() {
38 return new Object[]{
39 operand
40 };
41 }
42}