APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.javadoc.internal.tool

public Class JavadocClassFinder

extends ClassFinder
Class Inheritance
Imports
java.util.EnumSet, javax.tools.JavaFileObject, com.sun.tools.javac.api.JavacTrees, com.sun.tools.javac.code.Symbol.PackageSymbol, .ClassFinder, com.sun.tools.javac.util.Context, .Context.Factory

Javadoc uses an extended class finder that records package.html entries

Field Summary

Modifier and TypeField and Description
private EnumSet<JavaFileObject.Kind>
private JavacTrees
private EnumSet<JavaFileObject.Kind>
private ToolEnvironment
private final JavacTrees
Inherited from com.sun.tools.javac.code.ClassFinder:
classFinderKeycurrentClassFilecurrentLoccurrentOwnerpreferSourcesourceCompleteruserPathsFirst

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
extraFileActions(Symbol.PackageSymbol pack, JavaFileObject fo)

Overrides com.sun.tools.javac.code.ClassFinder.extraFileActions.

Override extraFileActions to check for package documentation

protected EnumSet<JavaFileObject.Kind>
getPackageFileKinds()

Overrides com.sun.tools.javac.code.ClassFinder.getPackageFileKinds.

Override getPackageFileKinds to include search for package.html

public static JavadocClassFinder
instance(Context context)

Hides com.sun.tools.javac.code.ClassFinder.instance.

Get the ClassFinder instance for this invocation.

public static void
Inherited from com.sun.tools.javac.code.ClassFinder:
getCompleterincludeClassFileloadClasspreferredFileObject

Field Detail

allback to summary
private EnumSet<JavaFileObject.Kind> all
jctreesback to summary
private JavacTrees jctrees
noSourceback to summary
private EnumSet<JavaFileObject.Kind> noSource
toolEnvback to summary
private ToolEnvironment toolEnv
treesback to summary
private final JavacTrees trees

Constructor Detail

JavadocClassFinderback to summary
public JavadocClassFinder(Context context)

Method Detail

extraFileActionsback to summary
protected void extraFileActions(Symbol.PackageSymbol pack, JavaFileObject fo)

Overrides com.sun.tools.javac.code.ClassFinder.extraFileActions.

Override extraFileActions to check for package documentation

Annotations
@Override
getPackageFileKindsback to summary
protected EnumSet<JavaFileObject.Kind> getPackageFileKinds()

Overrides com.sun.tools.javac.code.ClassFinder.getPackageFileKinds.

Override getPackageFileKinds to include search for package.html

Annotations
@Override
instanceback to summary
public static JavadocClassFinder instance(Context context)

Hides com.sun.tools.javac.code.ClassFinder.instance.

Doc from com.sun.tools.javac.code.ClassFinder.instance.

Get the ClassFinder instance for this invocation.

preRegisterback to summary
public static void preRegister(Context context)