|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes a parser which can be registered in the evaluator.
Method Summary | |
EType |
convert(Code code,
Context context,
TokenSource source,
Typesetter typesetter)
Try to convert some code into a proper data type. |
EType |
parse(Context context,
TokenSource source,
Typesetter typesetter)
Try to parse a proper value from the token source. |
void |
registered(Evaluator evaluator)
Inform the parser that it has been registered in an evaluator. |
Method Detail |
public EType convert(Code code, Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
code
- the code to convertcontext
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesetter
null
if the conversion
could not be performed
InterpreterException
- in case of an errorpublic EType parse(Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
context
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesetter
null
if none could be
parsed
InterpreterException
- in case of an errorpublic void registered(Evaluator evaluator)
evaluator
- the evaluator where the parser has been registered
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |