|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.reasoner.rulesys.builtins.BaseBuiltin
public abstract class BaseBuiltin
Dummy implementation of the Builtin interface that specific implementations can inherit from.
| Field Summary | |
|---|---|
static String |
BASE_URI
Base URI for jena builtins |
| Constructor Summary | |
|---|---|
BaseBuiltin()
|
|
| Method Summary | |
|---|---|
boolean |
bodyCall(Node[] args,
int length,
RuleContext context)
This method is invoked when the builtin is called in a rule body. |
void |
checkArgs(int length,
RuleContext context)
Check the argument length. |
Node |
getArg(int n,
Node[] args,
RuleContext context)
Return the n'th argument node after dererencing by what ever type of rule engine binding environment is appropriate. |
int |
getArgLength()
Return the expected number of arguments for this functor or 0 if the number is flexible. |
String |
getURI()
Return the full URI which identifies this built in. |
void |
headAction(Node[] args,
int length,
RuleContext context)
This method is invoked when the builtin is called in a rule head. |
boolean |
isMonotonic()
Returns false if this builtin is non-monotonic. |
boolean |
isSafe()
Returns false if this builtin has side effects when run in a body clause, other than the binding of environment variables. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.reasoner.rulesys.Builtin |
|---|
getName |
| Field Detail |
|---|
public static final String BASE_URI
| Constructor Detail |
|---|
public BaseBuiltin()
| Method Detail |
|---|
public String getURI()
getURI in interface Builtinpublic int getArgLength()
getArgLength in interface Builtin
public void checkArgs(int length,
RuleContext context)
public boolean bodyCall(Node[] args,
int length,
RuleContext context)
bodyCall in interface Builtinargs - the array of argument values for the builtin, this is an array
of Nodes, some of which may be Node_RuleVariables.length - the length of the argument list, may be less than the length of the args array
for some rule enginescontext - an execution context giving access to other relevant data
public void headAction(Node[] args,
int length,
RuleContext context)
headAction in interface Builtinargs - the array of argument values for the builtin, this is an array
of Nodes.length - the length of the argument list, may be less than the length of the args array
for some rule enginescontext - an execution context giving access to other relevant datapublic boolean isSafe()
isSafe in interface Builtinpublic boolean isMonotonic()
isMonotonic in interface Builtin
public Node getArg(int n,
Node[] args,
RuleContext context)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||