APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.tools.jdeprscan

public Class LoadProc

extends AbstractProcessor
Class Inheritance
Annotations
@SupportedAnnotationTypes:Deprecated
Imports
java.lang.annotation.IncompleteAnnotationException, java.util.ArrayList, .List, .Set, java.util.stream.Collectors, javax.annotation.processing.AbstractProcessor, .Messager, .ProcessingEnvironment, .RoundEnvironment, .SupportedAnnotationTypes, .SupportedSourceVersion, javax.lang.model.SourceVersion, javax.lang.model.element.Element, .ElementKind, .ExecutableElement, .TypeElement, javax.lang.model.type.ArrayType, .DeclaredType, .ExecutableType, .TypeMirror, javax.lang.model.util.Elements, javax.tools.Diagnostic

Annotation processor for the Deprecation Scanner tool. Examines APIs for deprecated elements and records information

Field Summary

Modifier and TypeField and Description
pack-priv final List<DeprData>
pack-priv Elements
pack-priv Messager
Inherited from javax.annotation.processing.AbstractProcessor:
processingEnv

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addData(ElementKind kind, TypeElement type, String nameSig, Deprecated dep)

pack-priv void
pack-priv void
pack-priv String
public List<DeprData>
pack-priv String
public SourceVersion
public void
init(ProcessingEnvironment pe)

Overrides javax.annotation.processing.AbstractProcessor.init.

Implements javax.annotation.processing.Processor.init.

Initializes the processor with the processing environment.

public boolean
process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)

Implements abstract javax.annotation.processing.AbstractProcessor.process.

Implements javax.annotation.processing.Processor.process.

Processes a set of annotation interfaces on root elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor.

Inherited from javax.annotation.processing.AbstractProcessor:
getCompletionsgetSupportedAnnotationTypesgetSupportedOptionsisInitialized

Field Detail

deprListback to summary
pack-priv final List<DeprData> deprList
elementsback to summary
pack-priv Elements elements
messagerback to summary
pack-priv Messager messager

Constructor Detail

LoadProcback to summary
public LoadProc()

Method Detail

addDataback to summary
pack-priv void addData(ElementKind kind, TypeElement type, String nameSig, Deprecated dep)
addMemberback to summary
pack-priv void addMember(ElementKind kind, TypeElement type, String nameSig, Deprecated dep)
addTypeback to summary
pack-priv void addType(ElementKind kind, TypeElement type, Deprecated dep)
descback to summary
pack-priv String desc(TypeMirror tm)
getDeprecationsback to summary
public List<DeprData> getDeprecations()
getDetailback to summary
pack-priv String getDetail(Element e)
getSupportedSourceVersionback to summary
public SourceVersion getSupportedSourceVersion()

Overrides javax.annotation.processing.AbstractProcessor.getSupportedSourceVersion.

Implements javax.annotation.processing.Processor.getSupportedSourceVersion.

Doc from javax.annotation.processing.AbstractProcessor.getSupportedSourceVersion.

Returns the latest source version supported by this annotation processor.

Annotations
@Override
initback to summary
public void init(ProcessingEnvironment pe)

Overrides javax.annotation.processing.AbstractProcessor.init.

Implements javax.annotation.processing.Processor.init.

Doc from javax.annotation.processing.AbstractProcessor.init.

Initializes the processor with the processing environment.

Annotations
@Override
processback to summary
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)

Implements abstract javax.annotation.processing.AbstractProcessor.process.

Implements javax.annotation.processing.Processor.process.

Doc from javax.annotation.processing.AbstractProcessor.process.

Processes a set of annotation interfaces on root elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor. If true is returned, the annotation interfaces are claimed and subsequent processors will not be asked to process them; if false is returned, the annotation interfaces are unclaimed and subsequent processors may be asked to process them. A processor may always return the same boolean value or may vary the result based on its own chosen criteria.

The input set will be empty if the processor supports "*" and the root elements have no annotations. A Processor must gracefully handle an empty set of annotations.

Annotations
@Override