Package org.jboss.jdeparser
Interface JSources
public interface JSources
A repository of source files.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptioncreatePackageInfoFile
(String packageName) Create apackage-info.java
file.createSourceFile
(String packageName, String fileName) Create a source file.void
Write the source files.
-
Method Details
-
createSourceFile
Create a source file.- Parameters:
packageName
- the package name of the source filefileName
- the source file name (excluding.java
suffix)- Returns:
- the source file
-
createPackageInfoFile
Create apackage-info.java
file.- Parameters:
packageName
- the package name- Returns:
- the source file
-
writeSources
Write the source files.- Throws:
IOException
- if a write operation fails
-