Construct(Class<R> ctorclass, Class... argclasses) Builds a functor that will build an object of class
ctorclass, given arguments of classes in
argclasses.
public
Construct(Class[] argclasses, Class<R> ctorclass) Builds a functor that will build an object of class
ctorclass, given arguments of classes in
argclasses.
public
Construct(Constructor<R> ctor) Builds a functor that will build an object using the given constructor.
Method Summary
public void
accept(net.sf.jga.fn.Visitor v) Calls the Visitor's visit(Construct) method, if it
implements the nested Visitor interface.
public R
fn(Object[] args) Builds an object via the designated constructor, passing the given
array of argument values.
Builds a functor that will build an object of class
ctorclass, given arguments of classes in
argclasses.
throws: IllegalArgumentException - if either argument is omitted, or if theconstructor cannot be found.
Builds a functor that will build an object of class
ctorclass, given arguments of classes in
argclasses.
throws: IllegalArgumentException - if either argument is omitted, or if theconstructor cannot be found.