jsynoptic.parser
Class NodeForPower
java.lang.Object
jsynoptic.parser.SimpleNode
jsynoptic.parser.ExpressionNode
jsynoptic.parser.NodeForPower
- All Implemented Interfaces:
- java.lang.Cloneable, Node
public class NodeForPower
- extends ExpressionNode
Method Summary |
java.lang.Number |
evaluate()
Evaluate the subtree under this node and return the computation result as a number |
static double |
powDouble(double a,
long b)
|
static long |
powLong(long a,
long b)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NodeForPower
public NodeForPower(int id)
NodeForPower
public NodeForPower(ExpressionParser p,
int id)
evaluate
public java.lang.Number evaluate()
- Description copied from class:
ExpressionNode
- Evaluate the subtree under this node and return the computation result as a number
- Specified by:
evaluate
in class ExpressionNode
powLong
public static long powLong(long a,
long b)
powDouble
public static double powDouble(double a,
long b)