| Package | Description |
|---|---|
| org.scijava.parsington | |
| org.scijava.parsington.eval |
| Modifier and Type | Class and Description |
|---|---|
class |
Function
A function is an implicit binary operator between two "noun"
tokens—typically between a variable on the left and a group on the
right, in which case the function's precedence is inferred from the group.
|
class |
Group
A group is a special N-ary operator delineated by a left-hand symbol and a
right-hand symbol, with comma-separated arguments.
|
| Modifier and Type | Field and Description |
|---|---|
static Operator |
Operators.ADD |
static Operator |
Operators.ADD_ASSIGN |
static Operator |
Operators.AND_ASSIGN |
static Operator |
Operators.ASSIGN |
static Operator |
Operators.BITWISE_AND |
static Operator |
Operators.BITWISE_OR |
static Operator |
Operators.COLON |
static Operator |
Operators.COMPLEMENT |
static Operator |
Operators.DIV |
static Operator |
Operators.DIV_ASSIGN |
static Operator |
Operators.DOT |
static Operator |
Operators.DOT_DIV |
static Operator |
Operators.DOT_DIV_ASSIGN |
static Operator |
Operators.DOT_MUL |
static Operator |
Operators.DOT_POW |
static Operator |
Operators.DOT_POW_ASSIGN |
static Operator |
Operators.DOT_RIGHT_DIV |
static Operator |
Operators.DOT_RIGHT_DIV_ASSIGN |
static Operator |
Operators.DOT_TRANSPOSE |
static Operator |
Operators.EQUAL |
static Operator |
Operators.GREATER_THAN |
static Operator |
Operators.GREATER_THAN_OR_EQUAL |
static Operator |
Operators.INSTANCEOF |
static Operator |
Operators.LEFT_SHIFT |
static Operator |
Operators.LEFT_SHIFT_ASSIGN |
static Operator |
Operators.LESS_THAN |
static Operator |
Operators.LESS_THAN_OR_EQUAL |
static Operator |
Operators.LOGICAL_AND |
static Operator |
Operators.LOGICAL_OR |
static Operator |
Operators.MOD |
static Operator |
Operators.MOD_ASSIGN |
static Operator |
Operators.MUL |
static Operator |
Operators.MUL_ASSIGN |
static Operator |
Operators.NEG |
static Operator |
Operators.NOT |
static Operator |
Operators.NOT_EQUAL |
static Operator |
Operators.OR_ASSIGN |
static Operator |
Operators.POS |
static Operator |
Operators.POST_DEC |
static Operator |
Operators.POST_INC |
static Operator |
Operators.POW |
static Operator |
Operators.POW_ASSIGN |
static Operator |
Operators.PRE_DEC |
static Operator |
Operators.PRE_INC |
static Operator |
Operators.QUESTION |
static Operator |
Operators.RIGHT_DIV |
static Operator |
Operators.RIGHT_DIV_ASSIGN |
static Operator |
Operators.RIGHT_SHIFT |
static Operator |
Operators.RIGHT_SHIFT_ASSIGN |
static Operator |
Operators.SUB |
static Operator |
Operators.SUB_ASSIGN |
static Operator |
Operators.TRANSPOSE |
static Operator |
Operators.UNSIGNED_RIGHT_SHIFT |
static Operator |
Operators.UNSIGNED_RIGHT_SHIFT_ASSIGN |
| Modifier and Type | Method and Description |
|---|---|
Operator |
Operator.instance()
Gets an instance of the operator, using this one as a template.
|
protected Operator |
ParseOperation.parseOperator()
Attempts to parse an operator.
|
| Modifier and Type | Method and Description |
|---|---|
List<Operator> |
ExpressionParser.operators()
Gets the list of operators available to expressions.
|
static List<Operator> |
Operators.standardList()
Gets the standard list of operators.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Operator.compareTo(Operator that) |
| Constructor and Description |
|---|
ExpressionParser(Collection<? extends Operator> operators)
Creates an expression parser with custom operators and default separator
symbols (
, for group elements, ; for statements). |
ExpressionParser(Collection<? extends Operator> operators,
String elementSeparator,
String statementSeparator)
Creates an expression parser with custom operators and separator symbols.
|
ExpressionParser(Collection<? extends Operator> operators,
String elementSeparator,
String statementSeparator,
BiFunction<ExpressionParser,String,ParseOperation> parseOperationFactory)
Creates an expression parser maximally customized to your requirements!
|
| Modifier and Type | Method and Description |
|---|---|
Object |
StackEvaluator.execute(Operator op,
Deque<Object> stack)
Executes an
operation with the specified value stack. |
default Object |
StandardStackEvaluator.execute(Operator op,
Deque<Object> stack) |
default Object |
StandardEvaluator.execute(Operator op,
Object... args)
Performs an operation.
|
default Object |
StandardTreeEvaluator.execute(Operator op,
SyntaxTree tree) |
Object |
TreeEvaluator.execute(Operator op,
SyntaxTree tree)
Executes an
operation on the specified syntax tree's children. |
Copyright © 2015–2021 SciJava. All rights reserved.