gnu.kawa.functions
Class CountValues

java.lang.Object
  extended by gnu.mapping.PropertySet
      extended by gnu.mapping.Procedure
          extended by gnu.mapping.Procedure1
              extended by gnu.kawa.functions.CountValues
All Implemented Interfaces:
Named

public class CountValues
extends Procedure1

Return the number of values in the argument.


Field Summary
static CountValues countValues
           
 
Constructor Summary
CountValues()
           
 
Method Summary
 void apply(CallContext ctx)
          Call this Procedure using the explicit-CallContext-convention.
 java.lang.Object apply1(java.lang.Object arg)
           
static int countValues(java.lang.Object arg)
           
 
Methods inherited from class gnu.mapping.Procedure1
apply0, apply2, apply3, apply4, applyN, numArgs
 
Methods inherited from class gnu.mapping.Procedure
apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
 
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

countValues

public static final CountValues countValues
Constructor Detail

CountValues

public CountValues()
Method Detail

countValues

public static int countValues(java.lang.Object arg)

apply1

public java.lang.Object apply1(java.lang.Object arg)
Specified by:
apply1 in class Procedure1

apply

public void apply(CallContext ctx)
Description copied from class: Procedure
Call this Procedure using the explicit-CallContext-convention. The input arguments are (by default) in stack.args; the result is written to ctx.consumer.

Overrides:
apply in class Procedure