public abstract class AbstractOperator extends java.lang.Object implements ExpressionItem
Modifier and Type | Field and Description |
---|---|
static AbstractOperator[] |
ALL_OPERATORS
The array contains all operators allowed by the preprocessor
|
static java.lang.String |
EXECUTION_PREFIX
The constant is the prefix for executing methods of operators
|
Constructor and Description |
---|
AbstractOperator() |
Modifier and Type | Method and Description |
---|---|
static <E extends AbstractOperator> |
findForClass(java.lang.Class<E> operatorClass)
Find an operator handler for its class
|
abstract int |
getArity()
Get the operator arity
|
ExpressionItemType |
getExpressionItemType()
Get the expression item type
|
abstract java.lang.String |
getKeyword()
Get the operator keyword
|
abstract java.lang.String |
getReference()
Get the operator reference to be shown for a help information request
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExpressionItemPriority
public static final java.lang.String EXECUTION_PREFIX
public static final AbstractOperator[] ALL_OPERATORS
public static <E extends AbstractOperator> E findForClass(java.lang.Class<E> operatorClass)
E
- the handler class extends AbstractOperatoroperatorClass
- the class to be used for search, must not be nullpublic ExpressionItemType getExpressionItemType()
getExpressionItemType
in interface ExpressionItem
public abstract int getArity()
public abstract java.lang.String getKeyword()
public abstract java.lang.String getReference()
public java.lang.String toString()
toString
in class java.lang.Object