public interface Parser
Parser interface are used to convert a code
string representing an arithmetic expression in a tree of terms
which can then be executed by using one of the evaluation methods of
the Term class.| Modifier and Type | Method and Description |
|---|---|
Namespace |
getDefaultNamespace()
Gets this parser's default namespace.
|
Term |
parse(String code)
Parses the expression given in the code string.
|
Term |
parse(String code,
Namespace namespace)
Parses the expression given in the code string.
|
Namespace getDefaultNamespace()
Term parse(String code) throws ParseException
code - the code string, for the syntax of valid expressions refer
to the class descriptionTermParseException - if a parse reportError occursTerm parse(String code, Namespace namespace) throws ParseException
code - the code string, for the syntax of valid expressions refer
to the class descriptionnamespace - the environment which is used to resolve namesTermParseException - if a parse error occursCopyright © 2014–2022 European Space Agency (ESA). All rights reserved.