|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.util.LineEditor
org.jomc.util.SectionEditor
org.jomc.tools.JavaSources.JavaEditor
org.jomc.tools.JavaSources.JavaImplementationEditor
public class JavaSources.JavaImplementationEditor
Extension to JavaEditor
for editing implementation source code.
Constructor Summary | |
---|---|
JavaSources.JavaImplementationEditor(org.jomc.model.Implementation implementation)
Creates a new JavaImplementationEditor instance for editing the source code of a given implementation. |
|
JavaSources.JavaImplementationEditor(org.jomc.util.LineEditor lineEditor,
org.jomc.model.Implementation implementation)
Creates a new JavaImplementationEditor instance for editing the source code of a given implementation
taking a LineEditor to chain. |
Method Summary | |
---|---|
void |
editAnnotationsSection(org.jomc.util.Section s)
Edits the annotations section of the source code of the editor. |
void |
editConstructorsSection(org.jomc.util.Section s)
Edits the constructors section of the source code of the editor. |
void |
editDefaultConstructorSection(org.jomc.util.Section s)
Edits the default constructor section of the source code of the editor. |
void |
editDependenciesSection(org.jomc.util.Section s)
Edits the dependencies section of the source code of the editor. |
void |
editDocumentationSection(org.jomc.util.Section s)
Edits the documentation section of the source code of the editor. |
void |
editLicenseSection(org.jomc.util.Section s)
Edits the license section of the source code of the editor. |
void |
editMessagesSection(org.jomc.util.Section s)
Edits the messages section of the source code of the editor. |
void |
editPropertiesSection(org.jomc.util.Section s)
Edits the properties section of the source code of the editor. |
void |
editSection(org.jomc.util.Section section)
|
String |
getOutput(org.jomc.util.Section section)
|
boolean |
isConstructorsSectionPresent()
Gets a flag indicating that the source code of the editor contains a constructors section. |
boolean |
isDefaultConstructorSectionPresent()
Gets a flag indicating that the source code of the editor contains a default constructor section. |
boolean |
isDependenciesSectionPresent()
Gets a flag indicating that the source code of the editor contains a dependencies section. |
boolean |
isMessagesSectionPresent()
Gets a flag indicating that the source code of the editor contains a messages section. |
boolean |
isPropertiesSectionPresent()
Gets a flag indicating that the source code of the editor contains a properties section. |
Methods inherited from class org.jomc.tools.JavaSources.JavaEditor |
---|
isAnnotationsSectionPresent, isDocumentationSectionPresent, isLicenseSectionPresent |
Methods inherited from class org.jomc.util.SectionEditor |
---|
editLine, getSection, isSectionFinished |
Methods inherited from class org.jomc.util.LineEditor |
---|
edit, getLineSeparator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaSources.JavaImplementationEditor(org.jomc.model.Implementation implementation)
JavaImplementationEditor
instance for editing the source code of a given implementation.
implementation
- The implementation to edit.public JavaSources.JavaImplementationEditor(org.jomc.util.LineEditor lineEditor, org.jomc.model.Implementation implementation)
JavaImplementationEditor
instance for editing the source code of a given implementation
taking a LineEditor
to chain.
lineEditor
- The editor to chain.implementation
- The implementation to edit.Method Detail |
---|
public String getOutput(org.jomc.util.Section section) throws IOException
getOutput
in class JavaSources.JavaEditor
IOException
public void editSection(org.jomc.util.Section section) throws IOException
editSection
in class JavaSources.JavaEditor
IOException
public void editLicenseSection(org.jomc.util.Section s) throws IOException
editLicenseSection
in class JavaSources.JavaEditor
s
- The section to edit.
IOException
- if editing s
fails.public void editAnnotationsSection(org.jomc.util.Section s) throws IOException
editAnnotationsSection
in class JavaSources.JavaEditor
s
- The section to edit.
NullPointerException
- if s
is null
.
IOException
- if editing s
fails.public void editDocumentationSection(org.jomc.util.Section s) throws IOException
editDocumentationSection
in class JavaSources.JavaEditor
s
- The section to edit.
NullPointerException
- if s
is null
.
IOException
- if editing s
fails.public void editConstructorsSection(org.jomc.util.Section s) throws IOException
s
- The section to edit.
NullPointerException
- if s
is null
.
IOException
- if editing s
fails.public void editDefaultConstructorSection(org.jomc.util.Section s) throws IOException
s
- The section to edit.
NullPointerException
- if s
is null
.
IOException
- if editing s
fails.public void editDependenciesSection(org.jomc.util.Section s) throws IOException
s
- The section to edit.
NullPointerException
- if s
is null
.
IOException
- if editing s
fails.public void editMessagesSection(org.jomc.util.Section s) throws IOException
s
- The section to edit.
NullPointerException
- if s
is null
.
IOException
- if editing s
fails.public void editPropertiesSection(org.jomc.util.Section s) throws IOException
s
- The section to edit.
NullPointerException
- if s
is null
.
IOException
- if editing s
fails.public boolean isConstructorsSectionPresent()
true
if the source code of the editor contains a constructors section; false
if the
source code of the editor does not contain a constructors section.public boolean isDefaultConstructorSectionPresent()
true
if the source code of the editor contains a default constructor section; false
if the source code of the editor does not contain a default constructor section.public boolean isMessagesSectionPresent()
true
if the source code of the editor contains a messages section; false
if the source code of the editor does not contain a messages section.public boolean isDependenciesSectionPresent()
true
if the source code of the editor contains a dependencies section; false
if the source code of the editor does not contain a dependencies section.public boolean isPropertiesSectionPresent()
true
if the source code of the editor contains a properties section; false
if the source code of the editor does not contain a properties section.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |