Package net.sf.basedb.util.jep.convert
Class ASTConstantConverter
java.lang.Object
net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<ASTConstant>
net.sf.basedb.util.jep.convert.ASTConstantConverter
- All Implemented Interfaces:
JepConversionFunction<ASTConstant>
Converts a constant node to an expression.
- Version:
- 2.4
- Author:
- nicklas
- Last modified
- $Date: 2015-04-20 11:08:18 +0200 (må, 20 apr 2015) $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoExpression
(ASTConstant node) Get the value from the constant node and check theConverterFactory
for a registered converter for the class and use it.Methods inherited from class net.sf.basedb.util.jep.convert.AbstractJepConversionFunction
getDescription, getName, isFunction, isOperator, toRestriction
-
Constructor Details
-
ASTConstantConverter
public ASTConstantConverter()
-
-
Method Details
-
toExpression
Get the value from the constant node and check theConverterFactory
for a registered converter for the class and use it.- Specified by:
toExpression
in interfaceJepConversionFunction<ASTConstant>
- Overrides:
toExpression
in classAbstractJepConversionFunction<ASTConstant>
- Parameters:
node
- The object to convert- Returns:
- An expression or null if the value is null
- Throws:
BaseException
- If the node can't be converted
-