|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.jomc.tools.JomcTool
org.jomc.tools.SourceFileProcessor
public class SourceFileProcessor extends JomcTool
Processes source code files.
Use cases
manageSourceFiles(File)manageSourceFiles(Module, File)manageSourceFiles(Specification, File)manageSourceFiles(Implementation, File)
| Modifier and Type | Class and Description |
|---|---|
class |
SourceFileProcessor.SourceFileEditor
Extension to SectionEditor adding support for editing source code files. |
| Nested classes/interfaces inherited from class org.jomc.tools.JomcTool |
|---|
JomcTool.Listener |
| Constructor and Description |
|---|
SourceFileProcessor()
Creates a new SourceFileProcessor instance. |
SourceFileProcessor(SourceFileProcessor tool)
Creates a new SourceFileProcessor instance taking a SourceFileProcessor instance to initialize
the instance with. |
| Modifier and Type | Method and Description |
|---|---|
SourceFileProcessor.SourceFileEditor |
getSourceFileEditor(org.jomc.model.Implementation implementation)
Gets a new editor for editing the source file of a given implementation of the modules of the instance. |
SourceFileProcessor.SourceFileEditor |
getSourceFileEditor(org.jomc.model.Specification specification)
Gets a new editor for editing the source file of a given specification of the modules of the instance. |
SourceFilesType |
getSourceFilesType()
Gets the source files model of the instance. |
SourceFileType |
getSourceFileType(org.jomc.model.Implementation implementation)
Gets the model of an implementation source file of the modules of the instance. |
SourceFileType |
getSourceFileType(org.jomc.model.Specification specification)
Gets the model of a specification source file of the modules of the instance. |
void |
manageSourceFiles(File sourcesDirectory)
Manages the source files of the modules of the instance. |
void |
manageSourceFiles(org.jomc.model.Implementation implementation,
File sourcesDirectory)
Manages the source file of a given implementation of the modules of the instance. |
void |
manageSourceFiles(org.jomc.model.Module module,
File sourcesDirectory)
Manages the source files of a given module of the modules of the instance. |
void |
manageSourceFiles(org.jomc.model.Specification specification,
File sourcesDirectory)
Manages the source file of a given specification of the modules of the instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceFileProcessor()
SourceFileProcessor instance.
public SourceFileProcessor(SourceFileProcessor tool)
throws IOException
SourceFileProcessor instance taking a SourceFileProcessor instance to initialize
the instance with.
tool - The instance to initialize the new instance with,NullPointerException - if tool is null.IOException - if copying tool fails.| Method Detail |
|---|
public SourceFilesType getSourceFilesType()
This accessor method returns a reference to the live object, not a snapshot. Therefore any modification you
make to the returned object will be present inside the object. This is why there is no set method.
getSourceFileType(org.jomc.model.Specification),
getSourceFileType(org.jomc.model.Implementation)public SourceFileType getSourceFileType(org.jomc.model.Specification specification)
specification - The specification to get a source file model for.specification.NullPointerException - if specification is null.getSourceFilesType()public SourceFileType getSourceFileType(org.jomc.model.Implementation implementation)
implementation - The implementation to get a source file model for.implementation.NullPointerException - if implementation is null.getSourceFilesType()
public void manageSourceFiles(File sourcesDirectory)
throws IOException
sourcesDirectory - The directory holding the source files to manage.NullPointerException - if sourcesDirectory is null.IOException - if managing source files fails.manageSourceFiles(org.jomc.model.Module, java.io.File)
public void manageSourceFiles(org.jomc.model.Module module,
File sourcesDirectory)
throws IOException
module - The module to process.sourcesDirectory - The directory holding the source files to manage.NullPointerException - if module or sourcesDirectory is null.IOException - if managing source files fails.manageSourceFiles(org.jomc.model.Specification, java.io.File),
manageSourceFiles(org.jomc.model.Implementation, java.io.File)
public void manageSourceFiles(org.jomc.model.Specification specification,
File sourcesDirectory)
throws IOException
specification - The specification to process.sourcesDirectory - The directory holding the source files to manage.NullPointerException - if specification or sourcesDirectory is null.IOException - if managing source files fails.getSourceFileEditor(org.jomc.model.Specification)
public void manageSourceFiles(org.jomc.model.Implementation implementation,
File sourcesDirectory)
throws IOException
implementation - The implementation to process.sourcesDirectory - The directory holding the source files to manage.NullPointerException - if implementation or sourcesDirectory is null.IOException - if managing source files fails.getSourceFileEditor(org.jomc.model.Implementation)public SourceFileProcessor.SourceFileEditor getSourceFileEditor(org.jomc.model.Specification specification)
specification - The specification whose source file to edit.specification.NullPointerException - if specification is null.public SourceFileProcessor.SourceFileEditor getSourceFileEditor(org.jomc.model.Implementation implementation)
implementation - The implementation whose source file to edit.implementation.NullPointerException - if implementation is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||