| net.sf.jga.fn.adaptor.Bind
All known Subclasses: net.sf.jga.fn.AdaptorVisitor,
Bind | public class Bind extends Generator (Code) | | Generator that wraps a given UnaryFunctor, passing a constant value
as the argument of the child functor.
Copyright © 2004-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | Bind(T constant, UnaryFunctor<T, R> fn) Builds a Bind Functor with the given constant and child functor. |
serialVersionUID | final static long serialVersionUID(Code) | | |
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(Bind) method, if it
implements the nested Visitor interface.
|
gen | public R gen()(Code) | | Given one argument, passes the constant value and the argument to the
child functor and returns the result.
f(c,x) |
getConstant | public T getConstant()(Code) | | Returns the constant value
the constant value |
getFunctor | public UnaryFunctor<T, R> getFunctor()(Code) | | Returns the child functor for this functor
the child functor for this functor |
|
|