public abstract class AbstractOperator extends Object implements ExpressionItem
Modifier and Type | Field and Description |
---|---|
static AbstractOperator[] |
ALL_OPERATORS
The array contains all operators allowed by the preprocessor
|
static 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(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 String |
getKeyword()
Get the operator keyword
|
abstract String |
getReference()
Get the operator reference to be shown for a help information request
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExpressionItemPriority
public static final String EXECUTION_PREFIX
public static final AbstractOperator[] ALL_OPERATORS
public static <E extends AbstractOperator> E findForClass(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 String getKeyword()
public abstract String getReference()
Copyright © 2011–2020 Igor Maznitsa. All rights reserved.