public class Procedure<C extends RuntimeContext<C>,N extends Node<C,N>,E extends Expression<C,N,E,O>,O extends Operator<C,N,O>,P extends Procedure<C,N,E,O,P>>
extends java.lang.Object
| Constructor and Description |
|---|
Procedure(SourceCode sourceCode,
C runtimeContext,
ExpressionFactory<C,N,E,O> expressionFactory) |
| Modifier and Type | Method and Description |
|---|---|
N |
createExpression(N node1,
O operator,
N node2) |
java.util.Optional<O> |
currentOperator() |
int |
getIndex() |
C |
getRuntimeContext() |
SourceCode |
getSourceCode() |
void |
incrementIndex() |
<T> T |
positionOf(java.util.function.Function<java.lang.Integer,T> action) |
<T> T |
underOperator(O operator,
java.util.function.Supplier<T> action) |
<T> T |
withIndex(java.util.function.Supplier<T> action) |
public Procedure(SourceCode sourceCode, C runtimeContext, ExpressionFactory<C,N,E,O> expressionFactory)
public SourceCode getSourceCode()
public <T> T underOperator(O operator, java.util.function.Supplier<T> action)
public <T> T positionOf(java.util.function.Function<java.lang.Integer,T> action)
public <T> T withIndex(java.util.function.Supplier<T> action)
public int getIndex()
public void incrementIndex()
public C getRuntimeContext()
public java.util.Optional<O> currentOperator()