AstAction and AstHandler provide actual functionality
| Modifier and Type | Field and Description |
|---|---|
| private final @NotNull AstNode | |
| private final @NotNull Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected C | |
| protected final C | |
| private A | |
| public A | |
| public A | |
| protected H | |
| protected H | |
| public @NotNull Set | |
| protected final void | |
| protected void | processNode(N
node being processed node, boolean whether to process child nodes if there is no handler for the node type withChildren, @NotNull BiConsumer<N, A> processor to invoke to perform the processing, BiConsumer taking N node, and A action processor)Node processing called for every node being processed Override this to add customizations to standard processing callback. |
| protected final < type of result returned by processor R> R | Returns: result or defaultValuenode to process node, R default value if no handler is defined for the node defaultValue, @NotNull BiFunction<N, A, R> processor to pass the node and handler for processing processor)Process the node and return value from the processor |
| astAdapter | back to summary |
|---|---|
| private final @NotNull AstNode<N> astAdapter
| |
| customHandlersMap | back to summary |
|---|---|
| private final @NotNull Map<Class<? extends N>, H> customHandlersMap
| |
| AstActionHandler | back to summary |
|---|---|
| public AstActionHandler(@NotNull AstNode<N> astAdapter) | |
| addActionHandler | back to summary |
|---|---|
protected C addActionHandler(H handler)
| |
| addActionHandlers | back to summary |
|---|---|
protected final C addActionHandlers(H[]... handlers)
| |
| getAction | back to summary |
|---|---|
private A getAction(H handler)
| |
| getAction | back to summary |
|---|---|
public A getAction(N node)
| |
| getAction | back to summary |
|---|---|
public A getAction(@NotNull Class<?> nodeClass)
| |
| getHandler | back to summary |
|---|---|
protected H getHandler(N node)
| |
| getHandler | back to summary |
|---|---|
protected H getHandler(@NotNull Class<?> nodeClass)
| |
| getNodeClasses | back to summary |
|---|---|
public @NotNull Set
| |
| processChildren | back to summary |
|---|---|
| protected final void processChildren(N node, @NotNull BiConsumer<N, A> processor) | |
| processNode | back to summary |
|---|---|
| protected void processNode(N node, boolean withChildren, @NotNull BiConsumer<N, A> processor) Node processing called for every node being processed Override this to add customizations to standard processing callback.
| |
| processNodeOnly | back to summary |
|---|---|
| protected final <R> R processNodeOnly(N node, R defaultValue, @NotNull BiFunction<N, A, R> processor) Process the node and return value from the processor
| |