|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<T>
public abstract class AbstractJepConversionFunction<T>
Abstract superclass implementing the JepConversionFunction
interface. This class throws an UnsupportedOperationException
for the toExpression(Object)
and toRestriction(Object)
methods. A subclass should override at least one of the methods.
Constructor Summary | |
---|---|
protected |
AbstractJepConversionFunction()
|
Method Summary | |
---|---|
String |
getDescription()
Get a short description of the function or operator |
String |
getName()
Get the name of the function or the symbol of the operator |
boolean |
isFunction()
If this converter is a built-in function. |
boolean |
isOperator()
If this converter is a built-in operator. |
Expression |
toExpression(T node)
Convert the object to an expression. |
Restriction |
toRestriction(T node)
Convert the object to a restriction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractJepConversionFunction()
Method Detail |
---|
public boolean isFunction()
JepConversionFunction
Jep.getFunctions()
.
isFunction
in interface JepConversionFunction<T>
public boolean isOperator()
JepConversionFunction
isOperator
in interface JepConversionFunction<T>
public String getName()
JepConversionFunction
getName
in interface JepConversionFunction<T>
public String getDescription()
JepConversionFunction
getDescription
in interface JepConversionFunction<T>
public Expression toExpression(T node)
JepConversionFunction
toExpression
in interface JepConversionFunction<T>
node
- The object to convert
UnsupportedOperationException
- Alwayspublic Restriction toRestriction(T node)
JepConversionFunction
toRestriction
in interface JepConversionFunction<T>
node
- The object to convert
UnsupportedOperationException
- Always
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |