Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

silk
Class Primitive  view Primitive download Primitive.java

java.lang.Object
  extended bysilk.Procedure
      extended bysilk.Primitive
All Implemented Interfaces:
java.lang.Runnable

public class Primitive
extends Procedure

Primitive procedures (as defined in the R4RS Scheme report. NOTE: Primitive.java IS GENERATED FROM primitives.scm. EDIT AT YOUR OWN RISK.


Field Summary
private static java.lang.String derivedExpressions
           
(package private)  int opcode
           
 
Fields inherited from class silk.Procedure
maxArgs, minArgs, name
 
Constructor Summary
Primitive(java.lang.String name, int opcode, int minArgs, int maxArgs)
          Constructor
 
Method Summary
 java.lang.Object apply(java.lang.Object[] args)
          Apply the primitive to a list of arguments.
 
Methods inherited from class silk.Procedure
apply, makeArgArray, makeArgArray, nParms, run, setName, throwObject, throwRuntimeException, toString, toStringArgs, tryCatch, tryFinally
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

opcode

int opcode

derivedExpressions

private static final java.lang.String derivedExpressions
See Also:
Constant Field Values
Constructor Detail

Primitive

public Primitive(java.lang.String name,
                 int opcode,
                 int minArgs,
                 int maxArgs)
Constructor

Method Detail

apply

public java.lang.Object apply(java.lang.Object[] args)
Apply the primitive to a list of arguments.

Specified by:
apply in class Procedure