|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jga.parser.UnaryFunctorRef<T,R>
public class UnaryFunctorRef<T,R>
Contains and describes a UnaryFunctor being built by the functor parser.
Copyright © 2004-2005 David A. Hall
Constructor Summary | |
---|---|
UnaryFunctorRef(UnaryFunctor<T,R> uf,
java.lang.Class<T> argType,
java.lang.String name,
java.lang.Class<R> 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. |
UnaryFunctor<T,R> |
getFunctor()
Returns the functor to which this refers. |
int |
getNumberArgs()
returns the number of arguments that the current functor requires. |
java.lang.Class<R> |
getReturnType()
returns the type of objects that the current functor returns. |
boolean |
isConstant()
Returns TRUE if the underlying functor is a constant generator |
boolean |
isIdentity()
Returns TRUE if the underlying functor is a unary identity |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnaryFunctorRef(UnaryFunctor<T,R> uf, java.lang.Class<T> argType, java.lang.String name, java.lang.Class<R> returnType)
Method Detail |
---|
public UnaryFunctor<T,R> getFunctor()
FunctorRef
getFunctor
in interface FunctorRef<R,UnaryFunctor<T,R>>
public java.lang.Class<R> getReturnType()
FunctorRef
getReturnType
in interface FunctorRef<R,UnaryFunctor<T,R>>
public int getNumberArgs()
FunctorRef
getNumberArgs
in interface FunctorRef<R,UnaryFunctor<T,R>>
public java.lang.Class<?> getArgType(int i)
FunctorRef
getArgType
in interface FunctorRef<R,UnaryFunctor<T,R>>
public java.lang.String getArgName(int i)
FunctorRef
getArgName
in interface FunctorRef<R,UnaryFunctor<T,R>>
public boolean isConstant()
FunctorRef
isConstant
in interface FunctorRef<R,UnaryFunctor<T,R>>
public boolean isIdentity()
FunctorRef
isIdentity
in interface FunctorRef<R,UnaryFunctor<T,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 |