public class ScriptContent
extends java.lang.Object
Constructor and Description |
---|
ScriptContent() |
Modifier and Type | Method and Description |
---|---|
void |
addContent(java.lang.String contentLine)
Add an content line.
|
void |
addDeclaration(java.lang.String declLine)
Add an declaration line.
|
void |
addImport(java.lang.String importLine)
Add an import line.
|
java.util.List<java.lang.String> |
getContent()
Return the content lines.
|
java.util.List<java.lang.String> |
getDeclarations()
Return the declarations lines.
|
SourceModel |
getSourceModel() |
boolean |
hasDeclarations()
Return true if the content has declarations.
|
void |
incrementImports()
Increment the count of imports.
|
void |
insertContent(int index,
java.lang.String contentLine)
Insert a line at a specified index.
|
boolean |
isContentEmpty()
Return true if the content part is empty.
|
boolean |
noMethodDeclared() |
void |
setNoMethodDeclared() |
void |
setSourceModel(SourceModel model) |
void |
updateContent(int index,
java.lang.String contentLine)
Update a line at a specified index.
|
public void setSourceModel(SourceModel model)
public SourceModel getSourceModel()
public void addImport(java.lang.String importLine)
importLine
- the import linepublic void addDeclaration(java.lang.String declLine)
declLine
- the declaration linepublic void addContent(java.lang.String contentLine)
contentLine
- the content linepublic void insertContent(int index, java.lang.String contentLine)
index
- the indexcontentLine
- the content linepublic void updateContent(int index, java.lang.String contentLine)
index
- the indexcontentLine
- the new content linepublic void incrementImports()
public java.util.List<java.lang.String> getDeclarations()
public boolean hasDeclarations()
public java.util.List<java.lang.String> getContent()
public boolean isContentEmpty()
public void setNoMethodDeclared()
public boolean noMethodDeclared()
Copyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence