com.ldodds.slug.util
Class MakeLiteral

java.lang.Object
  extended byBaseBuiltin
      extended bycom.ldodds.slug.util.MakeLiteral

public class MakeLiteral
extends BaseBuiltin

See Also:
Serialized Form

Constructor Summary
MakeLiteral()
           
 
Method Summary
 boolean bodyCall(Node[] args, int length, RuleContext context)
          This method is invoked when the builtin is called in a rule body.
 int getArgLength()
           
 java.lang.String getName()
           
 void headAction(Node[] args, RuleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MakeLiteral

public MakeLiteral()
Method Detail

getName

public java.lang.String getName()

getArgLength

public int getArgLength()

bodyCall

public boolean bodyCall(Node[] args,
                        int length,
                        RuleContext context)
This method is invoked when the builtin is called in a rule body.

Parameters:
args - 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 engines
context - an execution context giving access to other relevant data
Returns:
return true if the buildin predicate is deemed to have succeeded in the current environment

headAction

public void headAction(Node[] args,
                       RuleContext context)