RingJavafor Ring

javax.annotation.processing

9 classes of the module java.compiler.

Load them with:

using {
	"javax.annotation.processing"
}

All packages

AbstractProcessor#

abstract · extends Object · javax.annotation.processing.AbstractProcessor

Implements: Processor

Methods

MethodRing callJava overloads
@init@init(processingEnv)void init(ProcessingEnvironment processingEnv)
getCompletionsgetCompletions(element,annotation,member,userText)Iterable getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)
getSupportedAnnotationTypesgetSupportedAnnotationTypes()Set getSupportedAnnotationTypes()
getSupportedOptionsgetSupportedOptions()Set getSupportedOptions()
getSupportedSourceVersiongetSupportedSourceVersion()SourceVersion getSupportedSourceVersion()
processprocess(annotations,roundEnv)boolean process(Set annotations, RoundEnvironment roundEnv)

The methods and fields of Object are inherited.

Completion#

interface · javax.annotation.processing.Completion

Methods

MethodRing callJava overloads
getMessagegetMessage()String getMessage()
getValuegetValue()String getValue()

Completions#

class · extends Object · javax.annotation.processing.Completions

Methods

MethodRing callJava overloads
ofof(value)
of([value,message])
of([ :value = v, :message = v ])
static Completion of(String value)
static Completion of(String value, String message)

The methods and fields of Object are inherited.

Filer#

interface · javax.annotation.processing.Filer

Methods

MethodRing callJava overloads
createClassFilecreateClassFile(name,originatingElements)JavaFileObject createClassFile(CharSequence name, Element[] originatingElements)
createResourcecreateResource(location,moduleAndPkg,relativeName,originatingElements)FileObject createResource(Location location, CharSequence moduleAndPkg, CharSequence relativeName, Element[] originatingElements)
createSourceFilecreateSourceFile(name,originatingElements)JavaFileObject createSourceFile(CharSequence name, Element[] originatingElements)
getResourcegetResource(location,moduleAndPkg,relativeName)FileObject getResource(Location location, CharSequence moduleAndPkg, CharSequence relativeName)

FilerException#

class · extends IOException · javax.annotation.processing.FilerException

Constructors

new FilerException(String s)

Ring: new FilerException(args) uses the constructor with the fewest parameters (at least one); new FilerException makes the object with the constructor without parameters; the others: (new FilerException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of IOException are inherited.

Messager#

interface · javax.annotation.processing.Messager

Methods

MethodRing callJava overloads
printErrorprintError(msg)
printError([msg,e])
printError([ :msg = v, :e = v ])
void printError(CharSequence msg)
void printError(CharSequence msg, Element e)
printMessageprintMessage([kind,msg])
printMessage([ :kind = v, :msg = v ])
printMessage([kind,msg,e])
printMessage([ :kind = v, :msg = v, :e = v ])
printMessage([kind,msg,e,a])
printMessage([ :kind = v, :msg = v, :e = v, :a = v ])
printMessage([kind,msg,e,a,v])
printMessage([ :kind = v, :msg = v, :e = v, :a = v, :v = v ])
void printMessage(Kind kind, CharSequence msg)
void printMessage(Kind kind, CharSequence msg, Element e)
void printMessage(Kind kind, CharSequence msg, Element e, AnnotationMirror a)
void printMessage(Kind kind, CharSequence msg, Element e, AnnotationMirror a, AnnotationValue v)
printNoteprintNote(msg)
printNote([msg,e])
printNote([ :msg = v, :e = v ])
void printNote(CharSequence msg)
void printNote(CharSequence msg, Element e)
printWarningprintWarning(msg)
printWarning([msg,e])
printWarning([ :msg = v, :e = v ])
void printWarning(CharSequence msg)
void printWarning(CharSequence msg, Element e)

ProcessingEnvironment#

interface · javax.annotation.processing.ProcessingEnvironment

Methods

MethodRing callJava overloads
getElementUtilsgetElementUtils()Elements getElementUtils()
getFilergetFiler()Filer getFiler()
getLocalegetLocale()Locale getLocale()
getMessagergetMessager()Messager getMessager()
getOptionsgetOptions()Map getOptions()
getSourceVersiongetSourceVersion()SourceVersion getSourceVersion()
getTypeUtilsgetTypeUtils()Types getTypeUtils()
isPreviewEnabledisPreviewEnabled()boolean isPreviewEnabled()

Processor#

interface · javax.annotation.processing.Processor

Methods

MethodRing callJava overloads
@init@init(processingEnv)void init(ProcessingEnvironment processingEnv)
getCompletionsgetCompletions(element,annotation,member,userText)Iterable getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)
getSupportedAnnotationTypesgetSupportedAnnotationTypes()Set getSupportedAnnotationTypes()
getSupportedOptionsgetSupportedOptions()Set getSupportedOptions()
getSupportedSourceVersiongetSupportedSourceVersion()SourceVersion getSupportedSourceVersion()
processprocess(annotations,roundEnv)boolean process(Set annotations, RoundEnvironment roundEnv)

RoundEnvironment#

interface · javax.annotation.processing.RoundEnvironment

Methods

MethodRing callJava overloads
errorRaisederrorRaised()boolean errorRaised()
getElementsAnnotatedWithgetElementsAnnotatedWith(a)Set getElementsAnnotatedWith(Class a)
Set getElementsAnnotatedWith(TypeElement a)
getElementsAnnotatedWithAnygetElementsAnnotatedWithAny(annotations)Set getElementsAnnotatedWithAny(TypeElement[] annotations)
Set getElementsAnnotatedWithAny(Set annotations)
getRootElementsgetRootElements()Set getRootElements()
processingOverprocessingOver()boolean processingOver()
RingJava - use Java classes and methods from Ring programs.