org.eclipse.xtext.xbase.compiler
Interface IAppendable

All Known Subinterfaces:
ITreeAppendable
All Known Implementing Classes:
FakeTreeAppendable, ReplacingAppendable, StringBuilderBasedAppendable, TreeAppendable

@NonNullByDefault
public interface IAppendable

Author:
Sven Efftinge - Initial contribution and API

Method Summary
 IAppendable append(java.lang.CharSequence string)
           
 IAppendable append(JvmType type)
           
 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.
 java.lang.String declareVariable(java.lang.Object key, java.lang.String proposedName)
           
 IAppendable decreaseIndentation()
           
 java.lang.String getContent()
           
 java.util.List<java.lang.String> getImports()
           
 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 toString()
           
 

Method Detail

append

IAppendable append(java.lang.CharSequence string)

append

IAppendable append(JvmType type)

newLine

IAppendable newLine()

increaseIndentation

IAppendable increaseIndentation()

decreaseIndentation

IAppendable decreaseIndentation()

getImports

java.util.List<java.lang.String> getImports()

openScope

void openScope()
opens a new scope, backed up by a real Java Scope


openPseudoScope

void openPseudoScope()
opens a new variable scope, without having a new Java scope.


declareVariable

java.lang.String declareVariable(java.lang.Object key,
                                 java.lang.String proposedName)

declareSyntheticVariable

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.


getName

java.lang.String getName(java.lang.Object key)

hasName

boolean hasName(java.lang.Object key)

getObject

java.lang.Object getObject(java.lang.String name)

hasObject

boolean hasObject(java.lang.String name)

closeScope

void closeScope()

length

int length()

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object

getContent

java.lang.String getContent()