public class UMinusConverter extends AbstractJepConversionFunction<Node>
UMinus
function
to a Query API Expression
.Constructor and Description |
---|
UMinusConverter() |
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 |
isOperator()
Convert to expression by calling
Expressions.negate(Expression) . |
Expression |
toExpression(Node node)
Convert to a restriction and then use
Expressions.bool(Restriction)
to create a boolean expression. |
isFunction, toRestriction
public boolean isOperator()
Expressions.negate(Expression)
.isOperator
in interface JepConversionFunction<Node>
isOperator
in class AbstractJepConversionFunction<Node>
public String getName()
JepConversionFunction
getName
in interface JepConversionFunction<Node>
getName
in class AbstractJepConversionFunction<Node>
public String getDescription()
JepConversionFunction
getDescription
in interface JepConversionFunction<Node>
getDescription
in class AbstractJepConversionFunction<Node>
public Expression toExpression(Node node)
AbstractJepConversionFunction
Expressions.bool(Restriction)
to create a boolean expression.toExpression
in interface JepConversionFunction<Node>
toExpression
in class AbstractJepConversionFunction<Node>
node
- The object to convert