public class UnaryOperation extends AbstractSingleChildNodeCalc
Modifier and Type | Class and Description |
---|---|
static class |
UnaryOperation.Operator |
child
Modifier and Type | Method and Description |
---|---|
static UnaryOperation |
abs(NodeCalc child) |
<R,A> R |
accept(NodeCalcVisitor<R,A> visitor,
A arg,
int depth) |
<R,A> R |
acceptHandle(NodeCalcVisitor<R,A> visitor,
A arg,
Deque<Object> resultsStack) |
<R,A> void |
acceptIterate(NodeCalcVisitor<R,A> visitor,
A arg,
Deque<Object> nodesStack) |
boolean |
equals(Object obj) |
UnaryOperation.Operator |
getOperator() |
int |
hashCode() |
static UnaryOperation |
negative(NodeCalc child) |
static UnaryOperation |
positive(NodeCalc child) |
void |
writeJson(com.fasterxml.jackson.core.JsonGenerator generator) |
getChild, setChild
public static UnaryOperation abs(NodeCalc child)
public static UnaryOperation negative(NodeCalc child)
public static UnaryOperation positive(NodeCalc child)
public UnaryOperation.Operator getOperator()
public <R,A> R accept(NodeCalcVisitor<R,A> visitor, A arg, int depth)
public <R,A> R acceptHandle(NodeCalcVisitor<R,A> visitor, A arg, Deque<Object> resultsStack)
public <R,A> void acceptIterate(NodeCalcVisitor<R,A> visitor, A arg, Deque<Object> nodesStack)
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
IOException
Copyright © 2020. All rights reserved.