|
||||||||||
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
public abstract class JavaSources.JavaEditor
Extension to SectionEditor
for editing Java source code.
Constructor Summary | |
---|---|
JavaSources.JavaEditor()
Creates a new JavaEditor instance. |
|
JavaSources.JavaEditor(org.jomc.util.LineEditor lineEditor)
Creates a new JavaEditor instance taking a LineEditor to chain. |
Method Summary | |
---|---|
abstract void |
editAnnotationsSection(org.jomc.util.Section s)
Edits the annotations section of the source code of the editor. |
abstract void |
editDocumentationSection(org.jomc.util.Section s)
Edits the documentation section of the source code of the editor. |
abstract void |
editLicenseSection(org.jomc.util.Section s)
Edits the license section of the source code of the editor. |
void |
editSection(org.jomc.util.Section section)
|
String |
getOutput(org.jomc.util.Section section)
|
boolean |
isAnnotationsSectionPresent()
Gets a flag indicating that the source code of the editor contains an annotations section. |
boolean |
isDocumentationSectionPresent()
Gets a flag indicating that the source code of the editor contains a documentation section. |
boolean |
isLicenseSectionPresent()
Gets a flag indicating that the source code of the editor contains a license section. |
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.JavaEditor()
JavaEditor
instance.
public JavaSources.JavaEditor(org.jomc.util.LineEditor lineEditor)
JavaEditor
instance taking a LineEditor
to chain.
lineEditor
- The editor to chain.Method Detail |
---|
public String getOutput(org.jomc.util.Section section) throws IOException
getOutput
in class org.jomc.util.SectionEditor
IOException
public void editSection(org.jomc.util.Section section) throws IOException
editSection
in class org.jomc.util.SectionEditor
IOException
public abstract void editLicenseSection(org.jomc.util.Section s) throws IOException
s
- The section to edit.
NullPointerException
- if s
is null
.
IOException
- if editing s
fails.public abstract void editAnnotationsSection(org.jomc.util.Section s) throws IOException
s
- The section to edit.
NullPointerException
- if s
is null
.
IOException
- if editing s
fails.public abstract void editDocumentationSection(org.jomc.util.Section s) throws IOException
s
- The section to edit.
NullPointerException
- if s
is null
.
IOException
- if editing s
fails.public boolean isLicenseSectionPresent()
true
if the source code of the editor contains a license section; false
if the
source code of the editor does not contain a license section.public boolean isAnnotationsSectionPresent()
true
if the source code of the editor contains an annotations section; false
if the
source code of the editor does not contain an annotations section.public boolean isDocumentationSectionPresent()
true
if the source code of the editor contains a documentation section; false
if the
source code of the editor does not contain a documentation section.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |