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

Quick Search    Search Deep

silk
Class JavaConstructor  view JavaConstructor download JavaConstructor.java

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

public class JavaConstructor
extends Procedure

Provides dynamic constructors.


Field Summary
private  java.lang.Class target
           
 
Fields inherited from class silk.Procedure
maxArgs, minArgs, name
 
Constructor Summary
JavaConstructor(java.lang.Class c)
           
 
Method Summary
 java.lang.Object apply(java.lang.Object[] args)
          Apply the procedure to an argument list, which is represented as a parameter-oriented array.
static JavaConstructor create(java.lang.Class c)
           
 
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

target

private java.lang.Class target
Constructor Detail

JavaConstructor

public JavaConstructor(java.lang.Class c)
Method Detail

create

public static JavaConstructor create(java.lang.Class c)

apply

public java.lang.Object apply(java.lang.Object[] args)
Description copied from class: Procedure
Apply the procedure to an argument list, which is represented as a parameter-oriented array. That is, if the procedure p has the parameter list (x y . z) and the call is (p 1 2 3 4) then args will be the array {1, 2, (3 4)}.

Specified by:
apply in class Procedure