public class Print extends BaseBuiltin
BASE_URI| Constructor and Description |
|---|
Print() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bodyCall(Node[] args,
int length,
RuleContext context)
This method is invoked when the builtin is called in a rule body.
|
String |
getName()
Return a name for this builtin, normally this will be the name of the
functor that will be used to invoke it.
|
void |
headAction(Node[] args,
int length,
RuleContext context)
This method is invoked when the builtin is called in a rule head.
|
void |
print(Node[] args,
int length,
RuleContext context)
Print a node list to stdout
|
checkArgs, getArg, getArgLength, getURI, isMonotonic, isSafepublic String getName()
public boolean bodyCall(Node[] args, int length, RuleContext context)
bodyCall in interface BuiltinbodyCall in class BaseBuiltinargs - 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 datapublic void headAction(Node[] args, int length, RuleContext context)
headAction in interface BuiltinheadAction in class BaseBuiltinargs - the array of argument values for the builtin, this is an array
of Nodes.context - an execution context giving access to other relevant datalength - the length of the argument list, may be less than the length of the args array
for some rule enginespublic void print(Node[] args, int length, RuleContext context)
Licenced under the Apache License, Version 2.0