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: 2008-09-11 22:08:14 +0200 (Thu, 11 Sep 2008) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASTConstantConverter
public ASTConstantConverter()
toExpression
public Expression toExpression(ASTConstant node)
- Get the value from the constant node and check the
ConverterFactory
for
a registered converter for the class and use it.
- Specified by:
toExpression
in interface JepConversionFunction<ASTConstant>
- Overrides:
toExpression
in class AbstractJepConversionFunction<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