public abstract class ExpressionHandler extends Object implements sirius.kernel.di.std.Priorized
registered
and will be used to handle compiler expressions
starting with @.Constructor and Description |
---|
ExpressionHandler() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority() |
abstract Emitter |
process(Compiler compiler)
Processes the expression initialized by an @ in the source code.
|
abstract boolean |
shouldProcess(Compiler compiler)
Determines if this handler is responsible, based on the current state of the reader.
|
public int getPriority()
getPriority
in interface sirius.kernel.di.std.Priorized
public abstract boolean shouldProcess(Compiler compiler)
compiler
- the compiler which provides access to the InputProcessor.getReader()
and Compiler.getContext()
.@Nullable public abstract Emitter process(Compiler compiler)
compiler
- the compiler which provides access to the InputProcessor.getReader()
and Compiler.getContext()
.Copyright © 2018. All rights reserved.