|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jga.parser.BinaryFunctorRef
public class BinaryFunctorRef
Contains and describes a BinaryFunctor being built by the functor parser.
Copyright © 2004 David A. Hall
| Field Summary |
|---|
| Fields inherited from interface net.sf.jga.parser.FunctorRef |
|---|
BINARY_FN, CONSTANT, GENERATOR, IDENTITY, UNARY_FN |
| Constructor Summary | |
|---|---|
BinaryFunctorRef(BinaryFunctor bf,
java.lang.Class arg1Type,
java.lang.Class arg2Type,
java.lang.Class returnType)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getArgName(int i)
returns the name of the i'th argument to the current functor, as described in the expression being parsed. |
java.lang.Class |
getArgType(int i)
returns the type of the i'th argument to the current functor. |
BinaryFunctor |
getFunctor()
|
int |
getNumberArgs()
returns the number of arguments that the current functor requires. |
int |
getReferenceType()
returns a value that classifies the functor by the number of arguments that it requires. |
java.lang.Class |
getReturnType()
returns the type of objects that the current functor returns. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryFunctorRef(BinaryFunctor bf,
java.lang.Class arg1Type,
java.lang.Class arg2Type,
java.lang.Class returnType)
| Method Detail |
|---|
public BinaryFunctor getFunctor()
public java.lang.Class getReturnType()
FunctorRef
getReturnType in interface FunctorRefpublic int getNumberArgs()
FunctorRef
getNumberArgs in interface FunctorRefpublic java.lang.Class getArgType(int i)
FunctorRef
getArgType in interface FunctorRefpublic java.lang.String getArgName(int i)
FunctorRef
getArgName in interface FunctorRefpublic int getReferenceType()
FunctorRef
getReferenceType in interface FunctorRefpublic 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 | ||||||||