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>
public class ASTConstantConverter extends AbstractJepConversionFunction<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
Constructors Constructor Description ASTConstantConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
toExpression(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
-
-
-
-
Method Detail
-
toExpression
public Expression toExpression(ASTConstant node)
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
-
-