org.eclipse.xtext.xbase.compiler.output
Class SharedAppendableState
java.lang.Object
org.eclipse.xtext.xbase.compiler.output.SharedAppendableState
@NonNullByDefault
public class SharedAppendableState
- extends java.lang.Object
- Author:
- Sebastian Zarnekow - Initial contribution and API
- This class is not intended to be subclassed by clients.
- This class is not intended to be subclassed by clients.
- This class is not intended to be instantiated by clients.
- This class is not intended to be instantiated by clients.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedAppendableState
public SharedAppendableState(java.lang.String indentation,
java.lang.String lineSeparator,
ImportManager importManager)
SharedAppendableState
public SharedAppendableState(ImportManager importManager)
appendNewLineAndIndentation
public void appendNewLineAndIndentation(IAcceptor<java.lang.String> content)
increaseIndentation
public void increaseIndentation()
decreaseIndentation
public void decreaseIndentation()
openScope
public void openScope()
openPseudoScope
public void openPseudoScope()
declareVariable
public java.lang.String declareVariable(java.lang.Object key,
java.lang.String proposedName)
declareSyntheticVariable
public java.lang.String declareSyntheticVariable(java.lang.Object key,
java.lang.String proposedName)
closeScope
public void closeScope()
appendType
public void appendType(JvmType type,
IAcceptor<java.lang.String> content)
getImports
public java.util.List<java.lang.String> getImports()
getName
public java.lang.String getName(java.lang.Object key)
hasName
public boolean hasName(java.lang.Object key)
getObject
public java.lang.Object getObject(java.lang.String name)
hasObject
public boolean hasObject(java.lang.String name)