public interface JepConversionFunction<T>
Expression
or Restriction
. Custom function
should implement JepExpressionFunction
which supports
automatic conversion.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get a short description of the function or operator
|
java.lang.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()
java.lang.String getName()
java.lang.String getDescription()
Expression toExpression(T node)
node
- The object to convertjava.lang.UnsupportedOperationException
- If this converter can't convert to
expressionsRestriction toRestriction(T node)
node
- The object to convertjava.lang.UnsupportedOperationException
- If this converter can't convert to
restrictions