ubc.cs.JLog.Parser
Class pGenericPredicateEntry
java.lang.Object
ubc.cs.JLog.Parser.pPredicateEntry
ubc.cs.JLog.Parser.pGenericPredicateEntry
- All Implemented Interfaces:
- iName, iNameArity
public class pGenericPredicateEntry
- extends pPredicateEntry
Dynamically constructs the iPredicate
term from a description of the name,
arity, and class name for the associated predicate class. It is suitable for predicates
constructed directly from the jCompoundTerm
passed into
createPredicate
.
- Author:
- Glendon Holst
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
constructor_params_arrays
protected static final java.lang.Class[][] constructor_params_arrays
predicate_class
protected java.lang.Class predicate_class
pGenericPredicateEntry
public pGenericPredicateEntry(java.lang.String name,
int arity,
java.lang.String classname)
pGenericPredicateEntry
public pGenericPredicateEntry(java.lang.String name,
int arity,
java.lang.Class p_class)
createPredicate
public iPredicate createPredicate(jCompoundTerm cterm)
- Description copied from class:
pPredicateEntry
- The internal method for creating the
iPredicate
representation of this
predicate representation. Subclasses must override. The terms are provided, already created.
The caller is responsible to ensure that arity and cterm.size match.
- Specified by:
createPredicate
in class pPredicateEntry
- Parameters:
cterm
- The collection of jTerm
s.
- Returns:
iPredicate
representing this predicate and its terms.
getConstructorParamsArray
protected final java.lang.Class[] getConstructorParamsArray()
getConstructorArgsArray
protected final java.lang.Object[] getConstructorArgsArray(jCompoundTerm cterm)