| Package | Description |
|---|---|
| info.bliki.wiki.template.expr |
The parser and scanner implementation for the
{{ #expr: ... |
| info.bliki.wiki.template.expr.ast |
The abstract syntax tree classes for the
{{ #expr: ... |
| info.bliki.wiki.template.expr.eval |
The expression evaluator for the
{{ #expr: ... |
| info.bliki.wiki.template.expr.operator |
The operator classes (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
ASTNode |
Parser.parse(String expression)
Parse the given
expression String into an ASTNode. |
| Modifier and Type | Class and 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.The head of the function (i.e. |
class |
IntegerNode
A node for a parsed integer string
|
class |
NumberNode
The basic node for a parsed expression string
|
class |
SymbolNode
A node for a parsed symbol string (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
ASTNode |
IParserFactory.createDouble(String doubleString)
Create an double node from the given double value string
|
ASTNode |
ASTNode.derivative(String variableName) |
ASTNode |
FunctionNode.get(int index)
Returns the node at the specified position in this list.
|
ASTNode |
FunctionNode.remove(int index) |
ASTNode |
FunctionNode.set(int index,
ASTNode element) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<ASTNode> |
FunctionNode.iterator() |
ListIterator<ASTNode> |
FunctionNode.listIterator() |
ListIterator<ASTNode> |
FunctionNode.listIterator(int index) |
List<ASTNode> |
FunctionNode.subList(int fromIndex,
int toIndex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FunctionNode.add(ASTNode node)
Appends the node to the end of this list.
|
void |
FunctionNode.add(int index,
ASTNode element) |
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. |
ASTNode |
FunctionNode.set(int index,
ASTNode element) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FunctionNode.addAll(Collection<? extends ASTNode> c) |
boolean |
FunctionNode.addAll(int index,
Collection<? extends ASTNode> c) |
| Constructor and Description |
|---|
FunctionNode(ASTNode head) |
FunctionNode(SymbolNode head,
ASTNode arg0) |
FunctionNode(SymbolNode head,
ASTNode arg0,
ASTNode arg1) |
| Modifier and Type | Class and Description |
|---|---|
class |
DoubleNode |
| Modifier and Type | Method and Description |
|---|---|
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 and Description |
|---|---|
double |
DoubleEvaluator.evaluateNode(ASTNode node)
Evaluate an already parsed in abstract syntax tree node into a
double number value. |
boolean |
DoubleEvaluator.evaluateNodeLogical(ASTNode node) |
| Constructor and Description |
|---|
DoubleEvaluator(ASTNode node) |
| Modifier and Type | Method and Description |
|---|---|
ASTNode |
ASTNodeFactory.createDouble(String doubleString) |
ASTNode |
PrePlusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PrefixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PostfixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PreMinusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
DivideOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
ASTNode |
InfixOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
ASTNode |
SubtractOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
| Modifier and Type | Method and Description |
|---|---|
FunctionNode |
ASTNodeFactory.createAST(ASTNode headExpr)
Creates a new list with no arguments from the given header object .
|
ASTNode |
PrePlusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PrefixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PostfixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PreMinusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
DivideOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
ASTNode |
InfixOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
ASTNode |
SubtractOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
FunctionNode |
ASTNodeFactory.createFunction(SymbolNode head,
ASTNode arg0) |
FunctionNode |
ASTNodeFactory.createFunction(SymbolNode head,
ASTNode arg0,
ASTNode arg1) |
Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.