public class AttributeExpressionHandler extends ExpressionHandler
This is replaces @if (x) { y="y" } with @y="x".
Constructor and Description |
---|
AttributeExpressionHandler() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority() |
Emitter |
process(Compiler compiler)
Processes the expression initialized by an @ in the source code.
|
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
getPriority
in class ExpressionHandler
public boolean shouldProcess(Compiler compiler)
ExpressionHandler
shouldProcess
in class ExpressionHandler
compiler
- the compiler which provides access to the InputProcessor.getReader()
and Compiler.getContext()
.public Emitter process(Compiler compiler)
ExpressionHandler
process
in class ExpressionHandler
compiler
- the compiler which provides access to the InputProcessor.getReader()
and Compiler.getContext()
.Copyright © 2018. All rights reserved.