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

public Class TraverseProc

extends AbstractProcessor
Class Inheritance
Annotations
@SupportedAnnotationTypes:*
Imports
java.util.ArrayList, .Collection, .Comparator, .HashMap, .HashSet, .List, .Map, .Set, javax.annotation.processing.AbstractProcessor, .Messager, .ProcessingEnvironment, .RoundEnvironment, .SupportedAnnotationTypes, .SupportedSourceVersion, javax.lang.model.SourceVersion, javax.lang.model.element.Element, .ElementKind, .Modifier, .ModuleElement, .PackageElement, .TypeElement, javax.lang.model.util.Elements, javax.tools.Diagnostic

Field Summary

Modifier and TypeField and Description
pack-priv Elements
pack-priv Messager
pack-priv final List<String>
pack-priv Map<PackageElement, List<TypeElement>>
Inherited from javax.annotation.processing.AbstractProcessor:
processingEnv

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv Set<ModuleElement>
pack-priv Set<ModuleElement>
pack-priv Set<PackageElement>
pack-priv Map<PackageElement, List<TypeElement>>
public Map<PackageElement, List<TypeElement>>
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.

pack-priv void
pack-priv void
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

elementsback to summary
pack-priv Elements elements
messagerback to summary
pack-priv Messager messager
moduleRootsback to summary
pack-priv final List<String> moduleRoots
publicTypesback to summary
pack-priv Map<PackageElement, List<TypeElement>> publicTypes

Constructor Detail

TraverseProcback to summary
pack-priv TraverseProc(List<String> roots)

Method Detail

addPublicTypesback to summary
pack-priv void addPublicTypes(List<TypeElement> list, Element e)
findModulesback to summary
pack-priv Set<ModuleElement> findModules(ModuleElement root)
findModules0back to summary
pack-priv Set<ModuleElement> findModules0(ModuleElement m, Set<ModuleElement> set, int nesting)
findPackagesback to summary
pack-priv Set<PackageElement> findPackages(Collection<ModuleElement> mods)
findPublicTypesback to summary
pack-priv Map<PackageElement, List<TypeElement>> findPublicTypes(Collection<PackageElement> pkgs)
getPublicTypesback to summary
public Map<PackageElement, List<TypeElement>> getPublicTypes()
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
printPublicTypesback to summary
pack-priv void printPublicTypes()
printPublicTypesback to summary
pack-priv void printPublicTypes(Map<PackageElement, List<TypeElement>> types)
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