public interface IAppendable extends ISourceAppender
Modifier and Type | Method and Description |
---|---|
IAppendable |
append(java.lang.CharSequence string) |
IAppendable |
append(JvmType type) |
IAppendable |
append(LightweightTypeReference typeRef) |
void |
closeScope() |
java.lang.String |
declareSyntheticVariable(java.lang.Object key,
java.lang.String proposedName)
Declares a synthetic variable, where the name is not used in the current or any parent scope
except by other synthetic variables.
|
java.lang.String |
declareUniqueNameVariable(java.lang.Object key,
java.lang.String proposedName)
Declares a variable with unique name, which is not used in the current or any parent scope.
|
java.lang.String |
declareVariable(java.lang.Object key,
java.lang.String proposedName) |
IAppendable |
decreaseIndentation() |
java.lang.String |
getContent() |
GeneratorConfig |
getGeneratorConfig() |
java.util.List<java.lang.String> |
getImports()
Deprecated.
imports are handled by external components
|
java.lang.String |
getName(java.lang.Object key) |
java.lang.Object |
getObject(java.lang.String name) |
boolean |
hasName(java.lang.Object key) |
boolean |
hasObject(java.lang.String name) |
IAppendable |
increaseIndentation() |
int |
length() |
IAppendable |
newLine() |
void |
openPseudoScope()
opens a new variable scope, without having a new Java scope.
|
void |
openScope()
opens a new scope, backed up by a real Java Scope
|
java.lang.String |
removeName(java.lang.Object key) |
java.lang.String |
toString() |
isJava
IAppendable append(java.lang.CharSequence string)
append
in interface ISourceAppender
IAppendable append(JvmType type)
append
in interface ISourceAppender
IAppendable append(LightweightTypeReference typeRef)
append
in interface ISourceAppender
IAppendable newLine()
newLine
in interface ISourceAppender
IAppendable increaseIndentation()
increaseIndentation
in interface ISourceAppender
IAppendable decreaseIndentation()
decreaseIndentation
in interface ISourceAppender
@Deprecated java.util.List<java.lang.String> getImports()
void openScope()
void openPseudoScope()
java.lang.String declareVariable(java.lang.Object key, java.lang.String proposedName)
java.lang.String declareSyntheticVariable(java.lang.Object key, java.lang.String proposedName)
java.lang.String declareUniqueNameVariable(java.lang.Object key, java.lang.String proposedName)
java.lang.String getName(java.lang.Object key)
java.lang.String removeName(java.lang.Object key) throws java.lang.IllegalStateException
java.lang.IllegalStateException
boolean hasName(java.lang.Object key)
java.lang.Object getObject(java.lang.String name)
boolean hasObject(java.lang.String name)
void closeScope()
int length()
java.lang.String toString()
toString
in class java.lang.Object
java.lang.String getContent()
GeneratorConfig getGeneratorConfig()