org.eclipse.xtext.xbase.compiler
Class DelegatingAppendable

java.lang.Object
  extended by org.eclipse.xtext.xbase.compiler.DelegatingAppendable
All Implemented Interfaces:
IAppendable

public class DelegatingAppendable
extends java.lang.Object
implements IAppendable

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
DelegatingAppendable(IAppendable appendable)
           
 
Method Summary
 IAppendable append(java.lang.Object obj)
           
 void closeScope()
           
 java.lang.String declareVariable(java.lang.Object key, java.lang.String proposedName)
           
 IAppendable decreaseIndentation()
           
 java.util.List<java.lang.String> getImports()
           
 java.lang.String getName(java.lang.Object key)
           
 IAppendable increaseIndentation()
           
 void openScope()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingAppendable

public DelegatingAppendable(IAppendable appendable)
Method Detail

append

public IAppendable append(java.lang.Object obj)
Specified by:
append in interface IAppendable

increaseIndentation

public IAppendable increaseIndentation()
Specified by:
increaseIndentation in interface IAppendable

decreaseIndentation

public IAppendable decreaseIndentation()
Specified by:
decreaseIndentation in interface IAppendable

getImports

public java.util.List<java.lang.String> getImports()
Specified by:
getImports in interface IAppendable

openScope

public void openScope()
Specified by:
openScope in interface IAppendable

declareVariable

public java.lang.String declareVariable(java.lang.Object key,
                                        java.lang.String proposedName)
Specified by:
declareVariable in interface IAppendable

getName

public java.lang.String getName(java.lang.Object key)
Specified by:
getName in interface IAppendable

closeScope

public void closeScope()
Specified by:
closeScope in interface IAppendable