@SupportedAnnotationTypes(value="lambdify.apigateway.ann.*") public class RouteProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
(package private) ClassParser |
classParser |
(package private) String |
content |
(package private) com.github.mustachejava.MustacheFactory |
mustacheFactory |
(package private) static String |
TEMPLATE_FILE |
processingEnv| Constructor and Description |
|---|
RouteProcessor() |
| Modifier and Type | Method and Description |
|---|---|
private static String |
convertStreamToString(InputStream is) |
private void |
generateClass(Generated.Type type,
Writer writer) |
private void |
generateClasses() |
SourceVersion |
getSupportedSourceVersion()
We just return the latest version of whatever JDK we run on.
|
boolean |
process(Set<? extends TypeElement> set,
RoundEnvironment roundEnvironment) |
private String |
readTemplate() |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitializedstatic final String TEMPLATE_FILE
final ClassParser classParser
final com.github.mustachejava.MustacheFactory mustacheFactory
final String content
private String readTemplate() throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionprivate static String convertStreamToString(InputStream is)
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> set, RoundEnvironment roundEnvironment)
process in interface Processorprocess in class AbstractProcessorprivate void generateClasses()
private void generateClass(Generated.Type type, Writer writer) throws IOException
IOExceptionCopyright © 2018. All rights reserved.