public class Exponentiator extends Object implements BinaryOperator
Constructor and Description |
---|
Exponentiator()
Creates a new exponential operator.
|
Modifier and Type | Method and Description |
---|---|
Value |
applyTo(Expression leftOperand,
Expression rightOperand)
Applies the operator to the given operands and returns the result.
|
String |
getIdentifier()
Returns the operator's string identirifer.
|
Value.Type |
getOperandValueType()
Returns the type of value that the operator's operands can have.
|
String |
toString() |
public Exponentiator()
public Value applyTo(Expression leftOperand, Expression rightOperand) throws IllegalValueTypeException
BinaryOperator
applyTo
in interface BinaryOperator
IllegalValueTypeException
- if the value of an operand is not of the expected typepublic String getIdentifier()
Operator
getIdentifier
in interface Operator
public Value.Type getOperandValueType()
Operator
getOperandValueType
in interface Operator