public interface IAppendable extends ISourceAppender
| Modifier and Type | Method and Description |
|---|---|
IAppendable |
append(java.lang.CharSequence string) |
IAppendable |
append(org.eclipse.xtext.common.types.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() |
isJavaIAppendable append(java.lang.CharSequence string)
append in interface ISourceAppenderIAppendable append(org.eclipse.xtext.common.types.JvmType type)
append in interface ISourceAppenderIAppendable append(LightweightTypeReference typeRef)
append in interface ISourceAppenderIAppendable newLine()
newLine in interface ISourceAppenderIAppendable increaseIndentation()
increaseIndentation in interface ISourceAppenderIAppendable 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.IllegalStateExceptionboolean 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.Objectjava.lang.String getContent()
GeneratorConfig getGeneratorConfig()