|
http://www.eteks.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.eteks.parser.Parser
|
+--com.eteks.parser.FunctionParser
|
+--com.eteks.jeks.JeksFunctionParser
Parser for functions entered by user.
| Constructor Summary | |
JeksFunctionParser()
Creates a function parser using an instance JeksFunctionSyntax as syntax. |
|
JeksFunctionParser(JeksFunctionSyntax syntax)
Creates a function parser that uses the function syntax syntax. |
|
| Method Summary | |
CompiledFunction |
compileFunction(java.lang.String functionDefinition)
Compiles the definition of a function functionDefinition and
returns the instance of CompiledFunction matching the definition.
|
| Methods inherited from class com.eteks.parser.FunctionParser |
getSyntax |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JeksFunctionParser()
JeksFunctionSyntax as syntax.public JeksFunctionParser(JeksFunctionSyntax syntax)
syntax.| Method Detail |
public CompiledFunction compileFunction(java.lang.String functionDefinition)
throws CompilationException
FunctionParserfunctionDefinition and
returns the instance of CompiledFunction matching the definition.
This method builds a tree of type ExpressionNode matching the expression
of the function. This tree is used to compute the value of a function at interpretation time.compileFunction in class FunctionParsercom.eteks.parser.FunctionParserfunctionDefinition - the definition of the function.CompiledFunction, with which values can be computed.CompilationException - if the syntax of the function is incorrect or if some
elements (literals, constants, operators, functions,...) of its expression are not
accepted by the syntax of the parser.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||