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.
- Version:
- %I%, %G%
- Author:
- Glendon Holst
constructor_params_arrays
protected static final Class[][] constructor_params_arrays
predicate_class
protected Class predicate_class
pGenericPredicateEntry
public pGenericPredicateEntry(String name,
int arity,
String classname)
pGenericPredicateEntry
public pGenericPredicateEntry(String name,
int arity,
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 jTerms.
- Returns:
iPredicate representing this predicate and its terms.
getConstructorParamsArray
protected final Class[] getConstructorParamsArray()
getConstructorArgsArray
protected final Object[] getConstructorArgsArray(jCompoundTerm cterm)
Copyright © 2011. All Rights Reserved.