jsint
Class StaticReflector

java.lang.Object
  extended byjsint.Procedure
      extended byjsint.Reflector
          extended byjsint.StaticReflector
All Implemented Interfaces:
java.lang.Runnable, SchemeProcedure, java.io.Serializable
Direct Known Subclasses:
Generic, JavaConstructor

public abstract class StaticReflector
extends Reflector

StaticReflector's like JavaConstructor and Generic can share this behavior.

Author:
Peter Norvig, Copyright 1998, peter@norvig.com, license subsequently modified by Jscheme project members licensed under zlib licence (see license.txt)
See Also:
Serialized Form

Field Summary
static java.lang.Object[] args0
           
 
Fields inherited from class jsint.Reflector
isPrivileged, reflectors
 
Fields inherited from class jsint.Procedure
maxArgs, minArgs, name
 
Constructor Summary
StaticReflector()
           
 
Method Summary
 java.lang.Object[] makeArgArray(java.lang.Object[] code, Evaluator eval, LexicalEnvironment lexenv)
          Code is an Object[] who's first element is a JavaConstructor, and remaining elements are arguments.
 java.lang.Object[] makeArgArray(Pair args)
          Convert a list of arguments into an array expected by the procedure.
 
Methods inherited from class jsint.Reflector
readResolve, reset, resetAll
 
Methods inherited from class jsint.Procedure
apply, apply, apply, catching, getName, nParms, run, setName, stripExceptionWrapper, synchronize, 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

args0

public static final java.lang.Object[] args0
Constructor Detail

StaticReflector

public StaticReflector()
Method Detail

makeArgArray

public java.lang.Object[] makeArgArray(java.lang.Object[] code,
                                       Evaluator eval,
                                       LexicalEnvironment lexenv)
Code is an Object[] who's first element is a JavaConstructor, and remaining elements are arguments.

Overrides:
makeArgArray in class Procedure

makeArgArray

public java.lang.Object[] makeArgArray(Pair args)
Description copied from class: Procedure
Convert a list of arguments into an array expected by the procedure. (See apply for an explanation of what is expected.)

Overrides:
makeArgArray in class Procedure