2.17.2: 2011-06-17

net.sf.basedb.util.jep.convert
Class ASTConstantConverter

java.lang.Object
  extended by net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<ASTConstant>
      extended by 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) $

Constructor Summary
ASTConstantConverter()
           
 
Method Summary
 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.
 
Methods inherited from class net.sf.basedb.util.jep.convert.AbstractJepConversionFunction
getDescription, getName, isFunction, isOperator, toRestriction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTConstantConverter

public ASTConstantConverter()
Method Detail

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

2.17.2: 2011-06-17