Package com.powsybl.timeseries.ast
Class IntegerNodeCalc
- java.lang.Object
-
- com.powsybl.timeseries.ast.IntegerNodeCalc
-
- All Implemented Interfaces:
LiteralNodeCalc
,NodeCalc
public class IntegerNodeCalc extends Object implements LiteralNodeCalc
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description IntegerNodeCalc(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,A>
Raccept(NodeCalcVisitor<R,A> visitor, A arg, int depth)
<R,A>
RacceptHandle(NodeCalcVisitor<R,A> visitor, A arg, Deque<Object> resultsStack)
<R,A>
voidacceptIterate(NodeCalcVisitor<R,A> visitor, A arg, Deque<Object> nodesStack)
boolean
equals(Object obj)
int
getValue()
int
hashCode()
double
toDouble()
void
writeJson(com.fasterxml.jackson.core.JsonGenerator generator)
-
-
-
Method Detail
-
toDouble
public double toDouble()
- Specified by:
toDouble
in interfaceLiteralNodeCalc
-
accept
public <R,A> R accept(NodeCalcVisitor<R,A> visitor, A arg, int depth)
-
acceptHandle
public <R,A> R acceptHandle(NodeCalcVisitor<R,A> visitor, A arg, Deque<Object> resultsStack)
- Specified by:
acceptHandle
in interfaceNodeCalc
-
acceptIterate
public <R,A> void acceptIterate(NodeCalcVisitor<R,A> visitor, A arg, Deque<Object> nodesStack)
- Specified by:
acceptIterate
in interfaceNodeCalc
-
getValue
public int getValue()
-
writeJson
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
- Specified by:
writeJson
in interfaceNodeCalc
- Throws:
IOException
-
-