public interface JepConversionFunction<T>
Expression
or Restriction
. Custom function
should implement JepExpressionFunction
which supports
automatic conversion.Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get a short description of the function or operator
|
String |
getName()
Get the name of the function or the symbol of the operator
|
boolean |
isFunction()
If this converter is a built-in function.
|
boolean |
isOperator()
If this converter is a built-in operator.
|
Expression |
toExpression(T node)
Convert the object to an expression.
|
Restriction |
toRestriction(T node)
Convert the object to a restriction.
|
boolean isFunction()
Jep.getFunctions()
.boolean isOperator()
String getName()
String getDescription()
Expression toExpression(T node)
node
- The object to convertUnsupportedOperationException
- If this converter can't convert to
expressionsRestriction toRestriction(T node)
node
- The object to convertUnsupportedOperationException
- If this converter can't convert to
restrictions