| java.lang.Object org.mandarax.kernel.SimpleConstructor
All known Subclasses: org.mandarax.kernel.SimplePredicate,
SimpleConstructor | abstract class SimpleConstructor (Code) | | Abstract super class for simple predicates.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.3 |
Method Summary | |
public boolean | equals(Object obj) Indicates whether the two objects are equal. | public String | getName() Get the name of the predicate or function. | public Class[] | getStructure() Get the structure of the predicate or function. | public int | hashCode() Get the hashcode of the object. | public Object | perform(Term[] parameter, Session session) Perform the function or predicate using an array of terms as parameters. | public void | setName(String aName) Set the name of the predicate or function. | public void | setStructure(Class[] struct) Set the structure of the predicate or function. | public String | toString() Convert the object to a string. |
SimpleConstructor | public SimpleConstructor()(Code) | | Constructor.
|
SimpleConstructor | public SimpleConstructor(String aName, Class[] types)(Code) | | Constructor.
Parameters: aName - the name of the predicate Parameters: types - the structure of the predicate (the types of the terms) |
equals | public boolean equals(Object obj)(Code) | | Indicates whether the two objects are equal.
true if the objects are equal, false otherwise Parameters: obj - the object to compare |
getName | public String getName()(Code) | | Get the name of the predicate or function.
the name of the predicate or function |
getStructure | public Class[] getStructure()(Code) | | Get the structure of the predicate or function.
the structure of the predicate or function |
hashCode | public int hashCode()(Code) | | Get the hashcode of the object.
the hash code value |
setName | public void setName(String aName)(Code) | | Set the name of the predicate or function.
Parameters: the - name of the predicate or function |
setStructure | public void setStructure(Class[] struct)(Code) | | Set the structure of the predicate or function.
Parameters: struct - the structure of the predicate or function |
toString | public String toString()(Code) | | Convert the object to a string.
the string representation of this object |
|
|