Package net.sf.basedb.util.jep.convert
Class ASTVarNodeConverter
java.lang.Object
net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<ASTVarNode>
net.sf.basedb.util.jep.convert.ASTVarNodeConverter
- All Implemented Interfaces:
JepConversionFunction<ASTVarNode>
Converts a variable node to a parameter expression or null.
- 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 TypeMethodDescriptiontoExpression
(ASTVarNode node) Converts a JEP variable to a parameter.Methods inherited from class net.sf.basedb.util.jep.convert.AbstractJepConversionFunction
getDescription, getName, isFunction, isOperator, toRestriction
-
Constructor Details
-
ASTVarNodeConverter
public ASTVarNodeConverter()
-
-
Method Details
-
toExpression
Converts a JEP variable to a parameter. A value for the parameter must be set on the query before executing it. The special variableNULL
(ignoring case) is converted to Java null.- Specified by:
toExpression
in interfaceJepConversionFunction<ASTVarNode>
- Overrides:
toExpression
in classAbstractJepConversionFunction<ASTVarNode>
- Parameters:
node
- The object to convert- Returns:
- An
Expression
representing a parameter or null - See Also:
-