Package net.sf.basedb.util.jep.convert
Class SquareRootConverter
java.lang.Object
net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<Node>
net.sf.basedb.util.jep.convert.SquareRootConverter
- All Implemented Interfaces:
JepConversionFunction<Node>
Convert
SquareRoot
function
to a Query API Expression
.- Version:
- 2.4
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:08:14 +0200 (to, 11 sep 2008) $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a short description of the function or operatorgetName()
Get the name of the function or the symbol of the operatorboolean
If this converter is a built-in function.toExpression
(Node node) Convert to expression by callingExpressions.sqrt(Expression)
.Methods inherited from class net.sf.basedb.util.jep.convert.AbstractJepConversionFunction
isOperator, toRestriction
-
Constructor Details
-
SquareRootConverter
public SquareRootConverter()
-
-
Method Details
-
isFunction
public boolean isFunction()Description copied from interface:JepConversionFunction
If this converter is a built-in function. Built-in functions are automatically put in the enumeration return byJep.getFunctions()
.- Specified by:
isFunction
in interfaceJepConversionFunction<Node>
- Overrides:
isFunction
in classAbstractJepConversionFunction<Node>
- Returns:
- Always FALSE
-
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 'sqrt'
-
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
Convert to expression by callingExpressions.sqrt(Expression)
.- Specified by:
toExpression
in interfaceJepConversionFunction<Node>
- Overrides:
toExpression
in classAbstractJepConversionFunction<Node>
- Parameters:
node
- The object to convert- Returns:
- An expression or null
-