Package org.jboss.jdeparser
Class ImplJSources
java.lang.Object
org.jboss.jdeparser.ImplJSources
- All Implemented Interfaces:
JSources
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, AbstractJClassDef> private final List<ImplJSourceFile> private final JFilerprivate final FormatPreferencesprivate final Map<AbstractJClassDef, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddClassDef(String qualifiedName, AbstractJClassDef classDef) createPackageInfoFile(String packageName) Create apackage-info.javafile.createSourceFile(String packageName, String fileName) Create a source file.(package private) boolean(package private) StringqualifiedNameOf(AbstractJClassDef classDef) voidWrite the source files.
-
Field Details
-
filer
-
format
-
classFiles
-
classes
-
qualifiedNames
-
-
Constructor Details
-
ImplJSources
ImplJSources(JFiler filer, FormatPreferences format)
-
-
Method Details
-
addClassDef
-
hasClass
-
qualifiedNameOf
-
createSourceFile
Description copied from interface:JSourcesCreate a source file.- Specified by:
createSourceFilein interfaceJSources- Parameters:
packageName- the package name of the source filefileName- the source file name (excluding.javasuffix)- Returns:
- the source file
-
createPackageInfoFile
Description copied from interface:JSourcesCreate apackage-info.javafile.- Specified by:
createPackageInfoFilein interfaceJSources- Parameters:
packageName- the package name- Returns:
- the source file
-
writeSources
Description copied from interface:JSourcesWrite the source files.- Specified by:
writeSourcesin interfaceJSources- Throws:
IOException- if a write operation fails
-