org.eclipse.xtext.xbase.compiler
Class StringBuilderBasedAppendable
java.lang.Object
org.eclipse.xtext.xbase.compiler.StringBuilderBasedAppendable
- All Implemented Interfaces:
- IAppendable
public class StringBuilderBasedAppendable
- extends java.lang.Object
- implements IAppendable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringBuilderBasedAppendable
public StringBuilderBasedAppendable(ImportManager typeSerializer)
StringBuilderBasedAppendable
public StringBuilderBasedAppendable()
append
public IAppendable append(java.lang.Object obj)
- Specified by:
append
in interface IAppendable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
increaseIndentation
public IAppendable increaseIndentation()
- Specified by:
increaseIndentation
in interface IAppendable
decreaseIndentation
public IAppendable decreaseIndentation()
- Specified by:
decreaseIndentation
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
findNewName
protected java.lang.String findNewName(java.util.Set<java.lang.String> names,
java.lang.String proposedName)
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
appendTypeRef
protected void appendTypeRef(JvmTypeReference typeRef)
appendType
protected void appendType(JvmType type)
getImports
public java.util.List<java.lang.String> getImports()
- Specified by:
getImports
in interface IAppendable