public abstract class AbstractBinaryOperator extends AbstractFunction implements BinaryOperator
Modifier and Type | Field and Description |
---|---|
protected static int |
TYPE_BOOLEAN |
protected static int |
TYPE_DATE |
protected static int |
TYPE_DOUBLE |
protected static int |
TYPE_FLOAT |
protected static int |
TYPE_INT |
protected static int |
TYPE_LONG |
protected static int |
TYPE_STRING |
GROUP_BOOLEAN, GROUP_DATETIME, GROUP_NUMERIC, GROUP_OGC, GROUP_STRING
Modifier | Constructor and Description |
---|---|
protected |
AbstractBinaryOperator(String group,
String name) |
protected |
AbstractBinaryOperator(String group,
String name,
String description) |
Modifier and Type | Method and Description |
---|---|
Object |
call(Interpreter interpreter,
Object[] args) |
protected int |
getType(Object op1,
Object op2) |
boolean |
isOperator() |
addAlias, alias, argc, description, descriptionArgs, getDouble, getGeom, getInt, getLong, getPoint, getStr, group, name, template
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
call
addAlias, alias, argc, description, descriptionArgs, group, name, template
protected static final int TYPE_INT
protected static final int TYPE_LONG
protected static final int TYPE_FLOAT
protected static final int TYPE_DOUBLE
protected static final int TYPE_BOOLEAN
protected static final int TYPE_STRING
protected static final int TYPE_DATE
protected AbstractBinaryOperator(String group, String name, String description)
public Object call(Interpreter interpreter, Object[] args)
public boolean isOperator()
isOperator
in interface Function
isOperator
in class AbstractFunction