public class FunctionParser extends Object
This parser splits functions into operators and operands and constructs a tree view of the function.
It delegates the creation of operands to an OperandFactory
| Constructor and Description |
|---|
FunctionParser()
Create a parser using the default set of operators.
|
FunctionParser(OperatorCollection operatorCollection)
Create a parser with a custom set of operators.
|
| Modifier and Type | Method and Description |
|---|---|
FunctionNode |
compile(OperandFactory opFactory,
String s)
Compile a logical function.
|
public FunctionParser()
public FunctionParser(OperatorCollection operatorCollection)
operatorCollection - public FunctionNode compile(OperandFactory opFactory, String s)
s - the text form of the functionopFactory - the factory used to create operands.Copyright © 2009–2020. All rights reserved.