|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jga.fn.BinaryFunctor<T1,T2,R>
net.sf.jga.fn.adaptor.GenerateBinary<T1,T2,R>
public class GenerateBinary<T1,T2,R>
BinaryFunctor that returns the result of a nested Generator. The argument to the BinaryFunctor is ignored.
Copyright © 2004 David A. Hall
| Nested Class Summary | |
|---|---|
static interface |
GenerateBinary.Visitor
Interface for classes that may interpret a GenerateBinary functor. |
| Constructor Summary | |
|---|---|
GenerateBinary(Generator<R> gen)
|
|
| Method Summary | |
|---|---|
void |
accept(Visitor v)
Calls the Visitor's visit(GenerateBinary) method, if it
implements the nested Visitor interface. |
R |
fn(T1 arg1,
T2 arg2)
Returns the results of invoking the generator. |
Generator<R> |
getGenerator()
Returns the generator whose results are returned. |
java.lang.String |
toString()
|
| Methods inherited from class net.sf.jga.fn.BinaryFunctor |
|---|
bind, bind1st, bind2nd, compose, compose, distribute, generate, generate1st, generate2nd |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GenerateBinary(Generator<R> gen)
| Method Detail |
|---|
public Generator<R> getGenerator()
public R fn(T1 arg1,
T2 arg2)
fn in class BinaryFunctor<T1,T2,R>public void accept(Visitor v)
visit(GenerateBinary) method, if it
implements the nested Visitor interface.
accept in interface Visitableaccept in class BinaryFunctor<T1,T2,R>public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||