Package | Description |
---|---|
org.matheclipse.parser.client |
Provides the parser and scanner implementation.
|
org.matheclipse.parser.client.ast |
Provides the implementations of the abstract syntax tree classes.
|
org.matheclipse.parser.client.eval |
Predefined evaluation engines.
|
org.matheclipse.parser.client.eval.api |
Interfaces for visiting and evaluating the nodes of an abstract syntax tree.
|
org.matheclipse.parser.client.operator |
Provides the operator classes (i.e. for binary, prefix and postfix Operators).
|
Modifier and Type | Method | Description |
---|---|---|
ASTNode |
Parser.parse(String expression) |
Parse the given
expression String into an ASTNode. |
Modifier and Type | Class | Description |
---|---|---|
class |
FloatNode |
A node for a parsed floating number string.
|
class |
FractionNode |
A node for a parsed fraction string.
|
class |
FunctionNode |
A list of
ASTNode 's which represents a parsed function. |
class |
IntegerNode |
A node for a parsed integer string.
|
class |
NumberNode |
The basic node for storing a parsed number expression string.
|
class |
PatternNode |
A node for a parsed pattern expression (i.e. x_)
|
class |
StringNode |
A node for a parsed string (i.e. delimited by double quotes)
|
class |
SymbolNode |
A node for a parsed symbol string (i.e.
|
Modifier and Type | Method | Description |
---|---|---|
ASTNode |
IParserFactory.createDouble(String doubleString) |
Create an double node from the given double value string.
|
ASTNode |
FunctionNode.get(int index) |
Gets the.
|
ASTNode |
PatternNode.getConstraint() |
Gets the constraint.
|
ASTNode |
FunctionNode.getNode(int index) |
Gets the node.
|
ASTNode |
FunctionNode.remove(int index) |
Removes the.
|
ASTNode |
FunctionNode.set(int index,
ASTNode element) |
Sets the.
|
Modifier and Type | Method | Description |
---|---|---|
Iterator<ASTNode> |
FunctionNode.iterator() |
Iterator.
|
ListIterator<ASTNode> |
FunctionNode.listIterator() |
List iterator.
|
ListIterator<ASTNode> |
FunctionNode.listIterator(int index) |
List iterator.
|
List<ASTNode> |
FunctionNode.subList(int fromIndex,
int toIndex) |
Because GWT doesn't support the subList() method, we also
throw an UnsupportedOperationException.
|
Modifier and Type | Method | Description |
---|---|---|
void |
FunctionNode.add(int index,
ASTNode element) |
Adds the.
|
boolean |
FunctionNode.add(ASTNode e) |
Adds the.
|
FunctionNode |
IParserFactory.createAST(ASTNode headExpr) |
Creates a new function with no arguments from the given header expression
.
|
FunctionNode |
IParserFactory.createFunction(SymbolNode head,
ASTNode arg0) |
Creates a new function with head
head and 1 argument. |
FunctionNode |
IParserFactory.createFunction(SymbolNode head,
ASTNode arg0,
ASTNode arg1) |
Creates a new function with head
head and 2 arguments. |
PatternNode |
IParserFactory.createPattern(SymbolNode patternName,
ASTNode check) |
Create a pattern from the given symbol node.
|
ASTNode |
FunctionNode.set(int index,
ASTNode element) |
Sets the.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
FunctionNode.addAll(int index,
Collection<? extends ASTNode> c) |
Adds the all.
|
boolean |
FunctionNode.addAll(Collection<? extends ASTNode> c) |
Adds the all.
|
Constructor | Description |
---|---|
FunctionNode(ASTNode head) |
Instantiates a new function node.
|
FunctionNode(SymbolNode head,
ASTNode arg0) |
Instantiates a new function node.
|
FunctionNode(SymbolNode head,
ASTNode arg0,
ASTNode arg1) |
Instantiates a new function node.
|
PatternNode(SymbolNode symbol,
ASTNode constraint) |
Instantiates a new pattern node.
|
Modifier and Type | Class | Description |
---|---|---|
class |
ComplexNode |
The Class ComplexNode.
|
class |
DoubleNode |
The Class DoubleNode.
|
Modifier and Type | Method | Description |
---|---|---|
ASTNode |
ComplexEvalVisitor.optimizeFunction(FunctionNode functionNode) |
Optimize an already parsed in
functionNode into an
ASTNode . |
ASTNode |
DoubleEvaluator.optimizeFunction(FunctionNode functionNode) |
Optimize an already parsed in
functionNode into an
ASTNode . |
ASTNode |
DoubleEvaluator.parse(String expression) |
Parse the given
expression String and store the resulting
ASTNode in this DoubleEvaluator. |
static ASTNode |
DoubleEvaluator.parseNode(String expression) |
Parse the given
expression String and return the resulting
ASTNode. |
Modifier and Type | Method | Description |
---|---|---|
double |
DoubleEvaluator.evaluateNode(ASTNode node) |
Evaluate an already parsed in abstract syntax tree node into a
double number value. |
boolean |
ComplexEvalVisitor.evaluateNodeLogical(ASTNode node) |
Evaluate node logical.
|
boolean |
DoubleEvaluator.evaluateNodeLogical(ASTNode node) |
Evaluate node logical.
|
static void |
DoubleEvaluator.getVariables(ASTNode node,
Set<String> result) |
Get the variable names from the given AST node.
|
Constructor | Description |
---|---|
DoubleEvaluator(ASTNode node) |
Instantiates a new double evaluator.
|
Modifier and Type | Field | Description |
---|---|---|
protected ASTNode |
ObjectEvaluator.fNode |
Modifier and Type | Method | Description |
---|---|---|
ASTNode |
IEvaluator.optimizeFunction(FunctionNode functionNode) |
Optimize an already parsed in
functionNode into an
ASTNode . |
ASTNode |
ObjectEvaluator.optimizeFunction(FunctionNode functionNode) |
Optimize an already parsed in
functionNode into an
ASTNode . |
Modifier and Type | Method | Description |
---|---|---|
DATA |
AbstractASTVisitor.evaluateNode(ASTNode node) |
Evaluate an already parsed in abstract syntax tree node into a
DATA value. |
DATA |
IEvaluator.evaluateNode(ASTNode node) |
Evaluate an already parsed in abstract syntax tree node into a
DATA value. |
DATA |
ObjectEvaluator.evaluateNode(ASTNode node) |
Evaluate an already parsed in abstract syntax tree node into a
DATA value. |
DATA |
ObjectEvaluator.evaluateNode(ASTNode node,
USER_DATA_TYPE data) |
Evaluate node.
|
Modifier and Type | Method | Description |
---|---|---|
ASTNode |
ASTNodeFactory.createDouble(String doubleString) |
Create an double node from the given double value string.
|
ASTNode |
DivideOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
Creates the function.
|
ASTNode |
InfixOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
Creates the function.
|
ASTNode |
PostfixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
Creates the function.
|
ASTNode |
PrefixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
Creates the function.
|
ASTNode |
PreMinusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
Creates the function.
|
ASTNode |
PrePlusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
Creates the function.
|
ASTNode |
SubtractOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
Creates the function.
|
Modifier and Type | Method | Description |
---|---|---|
FunctionNode |
ASTNodeFactory.createAST(ASTNode headExpr) |
Creates a new function with no arguments from the given header expression
.
|
FunctionNode |
ASTNodeFactory.createFunction(SymbolNode head,
ASTNode arg0) |
Creates a new function with head
head and 1 argument. |
FunctionNode |
ASTNodeFactory.createFunction(SymbolNode head,
ASTNode arg0,
ASTNode arg1) |
Creates a new function with head
head and 2 arguments. |
ASTNode |
DivideOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
Creates the function.
|
ASTNode |
InfixOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
Creates the function.
|
ASTNode |
PostfixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
Creates the function.
|
ASTNode |
PrefixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
Creates the function.
|
ASTNode |
PreMinusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
Creates the function.
|
ASTNode |
PrePlusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
Creates the function.
|
ASTNode |
SubtractOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
Creates the function.
|
PatternNode |
ASTNodeFactory.createPattern(SymbolNode patternName,
ASTNode check) |
Create a pattern from the given symbol node.
|
Copyright © 2018. All rights reserved.