Package | Description |
---|---|
org.diirt.datasource.formula |
Support for formula expressions (formula syntax).
|
Modifier and Type | Method and Description |
---|---|
static FormulaAst |
FormulaAst.channel(String channelName)
A CHANNEL node representing the given channel name.
|
static FormulaAst |
FormulaAst.channelFromToken(String token)
A CHANNEL node from a quoted token.
|
static FormulaAst |
FormulaAst.floatingPoint(double floatingPoint)
A FLOATING_POINT node from the given value.
|
static FormulaAst |
FormulaAst.floatingPointFromToken(String token)
A FLOATING_POINT node from a token.
|
static FormulaAst |
FormulaAst.formula(String formula)
The AST corresponding to the parsed formula.
|
static FormulaAst |
FormulaAst.id(String id)
An ID node representing the given id.
|
static FormulaAst |
FormulaAst.integer(int integer)
An INTEGER node from the given value.
|
static FormulaAst |
FormulaAst.integerFromToken(String token)
An INTEGER node from a token.
|
static FormulaAst |
FormulaAst.op(String opName,
FormulaAst... children)
An OP node representing the given operator/function with the given
arguments.
|
static FormulaAst |
FormulaAst.op(String opName,
List<FormulaAst> children)
An OP node representing the given operator/function with the given
arguments.
|
static FormulaAst |
FormulaAst.singleChannel(String formula)
The AST corresponding to a single channel, if the formula represents one,
or null, if the formula is not a single channel.
|
static FormulaAst |
FormulaAst.string(String unquotedString)
A STRING node representing the given string.
|
static FormulaAst |
FormulaAst.stringFromToken(String token)
A STRING node from a quoted token.
|
FormulaAst |
FormulaAst.substituteChannels(Map<String,FormulaAst> substitutions)
Returns a new AST where the channel nodes that match the keys of the map
are substituted with the values of the map.
|
Modifier and Type | Method and Description |
---|---|
List<FormulaAst> |
FormulaAst.getChildren()
The children of this node, if IO, null otherwise.
|
Modifier and Type | Method and Description |
---|---|
static DesiredRateReadWriteExpression<?,Object> |
ExpressionLanguage.formula(FormulaAst ast)
Returns the expression corresponding to the formula represented by the
given Abstract Syntax Tree.
|
static FormulaAst |
FormulaAst.op(String opName,
FormulaAst... children)
An OP node representing the given operator/function with the given
arguments.
|
Modifier and Type | Method and Description |
---|---|
static FormulaAst |
FormulaAst.op(String opName,
List<FormulaAst> children)
An OP node representing the given operator/function with the given
arguments.
|
FormulaAst |
FormulaAst.substituteChannels(Map<String,FormulaAst> substitutions)
Returns a new AST where the channel nodes that match the keys of the map
are substituted with the values of the map.
|
Copyright © 2015. All rights reserved.