public interface OperatorDriver
Adding a new operator annotations to Operator DSL compiler, clients can implement this
and put the class name in
META-INF/services/com.asakusafw.lang.compiler.operator.OperatorDriver
.
Modifier and Type | Interface and Description |
---|---|
static class |
OperatorDriver.Context
Represents processing context.
|
Modifier and Type | Method and Description |
---|---|
OperatorDescription |
analyze(OperatorDriver.Context context)
Analyzes the operator method and returns its description.
|
ClassDescription |
getAnnotationTypeName()
Returns the target annotation type name.
|
default Iterable<? extends Completion> |
getCompletions(OperatorDriver.Context context,
ExecutableElement member,
String userText)
Returns a list of proposals about target annotation element.
|
ClassDescription getAnnotationTypeName()
OperatorDescription analyze(OperatorDriver.Context context)
null
.context
- target contextdefault Iterable<? extends Completion> getCompletions(OperatorDriver.Context context, ExecutableElement member, String userText)
context
- target contextmember
- target annotation elementuserText
- user's textIllegalArgumentException
- if some parameters were null
Completions
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.