| Package | Description |
|---|---|
| weka.core.expressionlanguage.common | |
| weka.core.expressionlanguage.core | |
| weka.core.expressionlanguage.parser | |
| weka.core.expressionlanguage.weka |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Primitives.BooleanExpression
An AST node for an expression of boolean type
|
static interface |
Primitives.DoubleExpression
An AST node for an expression of double type
|
static interface |
Primitives.StringExpression
An AST node for an expression of String type
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Primitives.BooleanConstant
An AST node representing a boolean constant
|
static class |
Primitives.BooleanVariable
An AST node representing a boolean variable
|
static class |
Primitives.DoubleConstant
An AST node representing a double constant
|
static class |
Primitives.DoubleVariable
An AST node representing a double variable
|
static class |
Primitives.StringConstant
An AST node representing a string constant
|
static class |
Primitives.StringVariable
An AST node representing a string variable
|
| Modifier and Type | Method and Description |
|---|---|
static Node |
Operators.division(Node left,
Node right)
'
/' division operator |
Node |
IfElseMacro.evaluate(Node... params)
Evaluates the ifelse macro
|
Node |
JavaMacro.evaluate(Node... nodes)
Evaluates the java macro on the given arguments
|
Node |
NoVariables.getVariable(String name)
Tries to fetch the variable.
|
Node |
SimpleVariableDeclarations.getVariable(String name)
Tries to fetch a declared variable
|
Node |
VariableDeclarationsCompositor.getVariable(String name)
Tries to fetch a variable from one of the combined declarations.
|
static Node |
Operators.minus(Node left,
Node right)
'
-' minus operator |
static Node |
Operators.plus(Node left,
Node right)
'
+' plus operator |
static Node |
Operators.pow(Node left,
Node right)
'
^' power operator |
static Node |
Operators.times(Node left,
Node right)
'
*' times operator |
static Node |
Operators.uminus(Node expr)
'
-' unary minus operator |
static Node |
Operators.uplus(Node expr)
'
+' unary plus operator |
| Modifier and Type | Method and Description |
|---|---|
static Primitives.BooleanExpression |
Operators.and(Node left,
Node right)
'
&' or 'and' logical and operator |
static Node |
Operators.division(Node left,
Node right)
'
/' division operator |
static Primitives.BooleanExpression |
Operators.equal(Node left,
Node right)
'
=' equal operator |
Node |
IfElseMacro.evaluate(Node... params)
Evaluates the ifelse macro
|
Node |
JavaMacro.evaluate(Node... nodes)
Evaluates the java macro on the given arguments
|
static Primitives.BooleanExpression |
Operators.greaterEqual(Node left,
Node right)
'
>=' greater equal operator |
static Primitives.BooleanExpression |
Operators.greaterThan(Node left,
Node right)
'
>' greater than operator |
static Primitives.BooleanExpression |
Operators.is(Node left,
Node right)
'
is' is operator (to check for string equality) |
static Primitives.BooleanExpression |
Operators.lessEqual(Node left,
Node right)
'
<=' less equal operator |
static Primitives.BooleanExpression |
Operators.lessThan(Node left,
Node right)
'
<' less than operator |
static Node |
Operators.minus(Node left,
Node right)
'
-' minus operator |
static Primitives.BooleanExpression |
Operators.not(Node expr)
'
!' or 'not' logical not operator |
static Primitives.BooleanExpression |
Operators.or(Node left,
Node right)
'
|' or 'or' logical or operator |
static Node |
Operators.plus(Node left,
Node right)
'
+' plus operator |
static Node |
Operators.pow(Node left,
Node right)
'
^' power operator |
static Primitives.BooleanExpression |
Operators.regexp(Node left,
Node right)
'
regexp' regexp operator (to check for string matching a given
regular expression) |
static Node |
Operators.times(Node left,
Node right)
'
*' times operator |
static Node |
Operators.uminus(Node expr)
'
-' unary minus operator |
static Node |
Operators.uplus(Node expr)
'
+' unary plus operator |
| Modifier and Type | Method and Description |
|---|---|
Node |
Macro.evaluate(Node... nodes)
Applies a macro to a set of parameter nodes.
|
Node |
VariableDeclarations.getVariable(String name)
Tries to fetch a variable
|
| Modifier and Type | Method and Description |
|---|---|
Node |
Macro.evaluate(Node... nodes)
Applies a macro to a set of parameter nodes.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
Parser.getRoot()
Returns the root node of the program
|
static Node |
Parser.parse(String expr,
VariableDeclarations variables,
MacroDeclarations macros)
Tries to parse and compile a program from the textual representation in
expr while exposing the variables and marcos
|
| Modifier and Type | Method and Description |
|---|---|
Node |
InstancesHelper.evaluate(Node... params)
Evaluates the 'ismissing' macro
|
Node |
InstancesHelper.getVariable(String name)
Tries to fetch a variable of an instance value
|
Node |
StatsHelper.getVariable(String name)
Tries to fetch a Stats field
|
| Modifier and Type | Method and Description |
|---|---|
Node |
InstancesHelper.evaluate(Node... params)
Evaluates the 'ismissing' macro
|
Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.