Package net.sf.basedb.util.jep.convert
Class UMinusConverter
- java.lang.Object
-
- net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<Node>
-
- net.sf.basedb.util.jep.convert.UMinusConverter
-
- All Implemented Interfaces:
JepConversionFunction<Node>
public class UMinusConverter extends AbstractJepConversionFunction<Node>
ConvertUMinus
function to a Query APIExpression
.- Version:
- 2.4
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:08:14 +0200 (to, 11 sep 2008) $
-
-
Constructor Summary
Constructors Constructor Description UMinusConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Get a short description of the function or operatorString
getName()
Get the name of the function or the symbol of the operatorboolean
isOperator()
Convert to expression by callingExpressions.negate(Expression)
.Expression
toExpression(Node node)
Convert to a restriction and then useExpressions.bool(Restriction)
to create a boolean expression.-
Methods inherited from class net.sf.basedb.util.jep.convert.AbstractJepConversionFunction
isFunction, toRestriction
-
-
-
-
Method Detail
-
isOperator
public boolean isOperator()
Convert to expression by callingExpressions.negate(Expression)
.- Specified by:
isOperator
in interfaceJepConversionFunction<Node>
- Overrides:
isOperator
in classAbstractJepConversionFunction<Node>
- Returns:
- Always FALSE
-
getName
public String getName()
Description copied from interface:JepConversionFunction
Get the name of the function or the symbol of the operator- Specified by:
getName
in interfaceJepConversionFunction<Node>
- Overrides:
getName
in classAbstractJepConversionFunction<Node>
- Returns:
- The string '-'
-
getDescription
public String getDescription()
Description copied from interface:JepConversionFunction
Get a short description of the function or operator- Specified by:
getDescription
in interfaceJepConversionFunction<Node>
- Overrides:
getDescription
in classAbstractJepConversionFunction<Node>
- Returns:
- Always null
-
toExpression
public Expression toExpression(Node node)
Description copied from class:AbstractJepConversionFunction
Convert to a restriction and then useExpressions.bool(Restriction)
to create a boolean expression.- Specified by:
toExpression
in interfaceJepConversionFunction<Node>
- Overrides:
toExpression
in classAbstractJepConversionFunction<Node>
- Parameters:
node
- The object to convert- Returns:
- An expression or null
-
-