| java.lang.Object org.mandarax.kernel.LObject org.mandarax.kernel.meta.JConstructor org.mandarax.kernel.meta.JFunction
JFunction | final public class JFunction extends JConstructor implements Function(Code) | | A JFunction is a function defined by a java method. E.g., if 'Max'
is a constant term (Max itself being an instance of a class Person ),
and father() is a method defined in this class returning another
instance, then we can build a JFunction based on the method
father() with a well defined semantic: the term father('Max')
can be simplified to a constant term that wrappes the result of invoking
father() with the parameter array {Max} (and that is me, Jens :-)).
In version 3.2, session support has been added. The last parameter (found in the wrapoped method)
is treated separately if its type is Session (or a subclass of session). Then this parameter is used
to pass a session reference at query time to the function or predicate!
See Also: org.mandarax.kernel.Session author: Jens Dietrich version: 3.4 <7 March 05> since: 1.0 |
JFunction | public JFunction()(Code) | | Constructor.
Parameters: aMethod - the method used |
JFunction | public JFunction(Method aMethod)(Code) | | Constructor.
Parameters: aMethod - the method used |
JFunction | public JFunction(Method aMethod, String aName)(Code) | | Constructor.
Parameters: aMethod - the method used Parameters: aName - the name of the object |
equals | public boolean equals(Object obj)(Code) | | Indicates whether this function equals the object.
Parameters: obj - the object to compare this object with true if the objects are equal, false otherwise |
getReturnType | public Class getReturnType()(Code) | | Get the return type.
the return type |
|
|