|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FunctorParser
Parses strings containing JXFG scripts and produces functors.
Copyright © 2005 David A. Hall
Method Summary | ||
---|---|---|
java.lang.Class<?> |
getReturnType()
Returns the type of object returned by the last functor parsed. |
|
|
parseBinary(java.lang.String str,
java.lang.Class<T1> arg1Type,
java.lang.Class<T2> arg2Type)
Parses the string to create a BinaryFunctor that takes arguments of the given types. |
|
Generator<?> |
parseGenerator(java.lang.String str)
Parses the string to create a Generator. |
|
|
parseUnary(java.lang.String str,
java.lang.Class<T1> argType)
Parses the string to create a UnaryFunctor that takes an argument of the given type. |
Method Detail |
---|
Generator<?> parseGenerator(java.lang.String str) throws ParseException
ParseException
<T1> UnaryFunctor<T1,?> parseUnary(java.lang.String str, java.lang.Class<T1> argType) throws ParseException
ParseException
<T1,T2> BinaryFunctor<T1,T2,?> parseBinary(java.lang.String str, java.lang.Class<T1> arg1Type, java.lang.Class<T2> arg2Type) throws ParseException
ParseException
java.lang.Class<?> getReturnType()
java.lang.IllegalStateException
- if the parser has not been used or if
parsing the last functor resulted in an exception being thrown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |