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 JFiler
private final FormatPreferences
private final Map
<AbstractJClassDef, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addClassDef
(String qualifiedName, AbstractJClassDef classDef) createPackageInfoFile
(String packageName) Create apackage-info.java
file.createSourceFile
(String packageName, String fileName) Create a source file.(package private) boolean
(package private) String
qualifiedNameOf
(AbstractJClassDef classDef) void
Write 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:JSources
Create a source file.- Specified by:
createSourceFile
in interfaceJSources
- Parameters:
packageName
- the package name of the source filefileName
- the source file name (excluding.java
suffix)- Returns:
- the source file
-
createPackageInfoFile
Description copied from interface:JSources
Create apackage-info.java
file.- Specified by:
createPackageInfoFile
in interfaceJSources
- Parameters:
packageName
- the package name- Returns:
- the source file
-
writeSources
Description copied from interface:JSources
Write the source files.- Specified by:
writeSources
in interfaceJSources
- Throws:
IOException
- if a write operation fails
-