@SupportedSourceVersion(value=RELEASE_8) @SupportedAnnotationTypes(value="com.oracle.graal.nodeinfo.NodeInfo") public class GraphNodeProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
private Element |
scope
Node class currently being processed.
|
processingEnv| Constructor and Description |
|---|
GraphNodeProcessor() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
errorMessage(Element element,
String format,
Object... args) |
private static List<Element> |
getElementHierarchy(Element e) |
(package private) ProcessingEnvironment |
getProcessingEnv() |
SourceVersion |
getSupportedSourceVersion() |
static boolean |
isBug367599(Throwable t)
Determines if a given exception is (most likely) caused by Bug 367599.
|
static boolean |
isEnclosedIn(Element e,
Element scopeElement) |
(package private) boolean |
isNodeType(Element element) |
(package private) void |
message(Diagnostic.Kind kind,
Element element,
String format,
Object... args) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
private void |
reportException(Diagnostic.Kind kind,
Element element,
Throwable t)
Bugs in an annotation processor can cause silent failure so try to report any exception
throws as errors.
|
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitializedpublic GraphNodeProcessor()
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorpublic static boolean isEnclosedIn(Element e, Element scopeElement)
void errorMessage(Element element, String format, Object... args)
void message(Diagnostic.Kind kind, Element element, String format, Object... args)
private static List<Element> getElementHierarchy(Element e)
private void reportException(Diagnostic.Kind kind, Element element, Throwable t)
ProcessingEnvironment getProcessingEnv()
boolean isNodeType(Element element)
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorpublic static boolean isBug367599(Throwable t)