de.cm.frw.core.fun.impl
Class LP.EmptyConsCell

java.lang.Object
  extended by de.cm.frw.core.fun.impl.Function
      extended by de.cm.frw.core.fun.impl.LP.ConsCell
          extended by de.cm.frw.core.fun.impl.LP.EmptyConsCell
Enclosing class:
LP

public static class LP.EmptyConsCell
extends LP.ConsCell


Nested Class Summary
 
Nested classes/interfaces inherited from class de.cm.frw.core.fun.impl.Function
Function.InvalidArguments
 
Constructor Summary
LP.EmptyConsCell()
           
 
Method Summary
 void checkArguments(java.util.Collection args)
          Override this method to check conditions on the arguments (like types) passed to the function in apply before the operate method is called.
 boolean isEmpty()
           
 
Methods inherited from class de.cm.frw.core.fun.impl.LP.ConsCell
operate, toString
 
Methods inherited from class de.cm.frw.core.fun.impl.Function
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, arity, box, box, box, box, box, box, box, box, box, box, box, box, box, box, box, is, main, map, map, reduce, unbox, val
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LP.EmptyConsCell

public LP.EmptyConsCell()
Method Detail

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in class LP.ConsCell

checkArguments

public void checkArguments(java.util.Collection args)
                    throws Function.InvalidArguments
Description copied from class: Function
Override this method to check conditions on the arguments (like types) passed to the function in apply before the operate method is called. Throw the declared exception with a meaningful message when condition are not met. Note: Number of arguments < arity is checked before this is called to have enough arguments to operate on, however if more is no good, check it here ... Default implementation does nothing.

Overrides:
checkArguments in class LP.ConsCell
Throws:
Function.InvalidArguments