Class FakeTreeAppendable
- java.lang.Object
-
- org.eclipse.xtext.xbase.compiler.AbstractStringBuilderBasedAppendable
-
- org.eclipse.xtext.xbase.compiler.StringBuilderBasedAppendable
-
- org.eclipse.xtext.xbase.compiler.output.FakeTreeAppendable
-
- All Implemented Interfaces:
org.eclipse.xtext.generator.trace.ITraceRegionProvider
,IAppendable
,ISourceAppender
,ITreeAppendable
public class FakeTreeAppendable extends StringBuilderBasedAppendable implements ITreeAppendable
-
-
Constructor Summary
Constructors Constructor Description FakeTreeAppendable()
FakeTreeAppendable(ImportManager typeSerializer)
FakeTreeAppendable(ImportManager typeSerializer, java.lang.String indentation, java.lang.String lineSeparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITreeAppendable
append(java.lang.CharSequence string)
Appends the specified character sequence to this ITreeAppendable.ITreeAppendable
append(java.lang.Class<?> type)
ITreeAppendable
append(org.eclipse.xtext.common.types.JvmType type)
ITreeAppendable
append(LightweightTypeReference typeRef)
ITreeAppendable
decreaseIndentation()
ErrorTreeAppendable
errorChild()
org.eclipse.xtext.generator.trace.AbstractTraceRegion
getTraceRegion()
ITreeAppendable
increaseIndentation()
ITreeAppendable
newLine()
ITreeAppendable
trace(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> objects)
ITreeAppendable
trace(org.eclipse.emf.ecore.EObject object)
same as trace(object, false)ITreeAppendable
trace(org.eclipse.emf.ecore.EObject object, boolean useForDebugging)
ITreeAppendable
trace(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)
ITreeAppendable
trace(org.eclipse.xtext.generator.trace.ILocationData location)
ITreeAppendable
trace(org.eclipse.xtext.generator.trace.ILocationData location, boolean useForDebugging)
-
Methods inherited from class org.eclipse.xtext.xbase.compiler.StringBuilderBasedAppendable
appendType, appendType, getImportManager, getImports
-
Methods inherited from class org.eclipse.xtext.xbase.compiler.AbstractStringBuilderBasedAppendable
charAt, closeScope, createLightweightTypeReferenceSerializer, declareSyntheticVariable, declareUniqueNameVariable, declareVariable, getContent, getGeneratorConfig, getIndentationLevel, getIndentationString, getLineSeparator, getName, getObject, hasName, hasObject, isJava, length, openPseudoScope, openScope, removeName, setGeneratorConfig, setScopeStack, subSequence, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.xbase.compiler.IAppendable
closeScope, declareSyntheticVariable, declareUniqueNameVariable, declareVariable, getContent, getGeneratorConfig, getImports, getName, getObject, hasName, hasObject, length, openPseudoScope, openScope, removeName, toString
-
Methods inherited from interface org.eclipse.xtext.xbase.compiler.ISourceAppender
isJava
-
Methods inherited from interface org.eclipse.xtext.xbase.compiler.output.ITreeAppendable
blankLine
-
-
-
-
Constructor Detail
-
FakeTreeAppendable
public FakeTreeAppendable()
-
FakeTreeAppendable
public FakeTreeAppendable(ImportManager typeSerializer, java.lang.String indentation, java.lang.String lineSeparator)
-
FakeTreeAppendable
public FakeTreeAppendable(ImportManager typeSerializer)
-
-
Method Detail
-
append
public ITreeAppendable append(org.eclipse.xtext.common.types.JvmType type)
- Specified by:
append
in interfaceIAppendable
- Specified by:
append
in interfaceISourceAppender
- Specified by:
append
in interfaceITreeAppendable
- Overrides:
append
in classAbstractStringBuilderBasedAppendable
-
append
public ITreeAppendable append(java.lang.Class<?> type)
- Specified by:
append
in interfaceITreeAppendable
- Overrides:
append
in classAbstractStringBuilderBasedAppendable
-
append
public ITreeAppendable append(java.lang.CharSequence string)
Description copied from interface:ITreeAppendable
Appends the specified character sequence to this ITreeAppendable.- Specified by:
append
in interfaceIAppendable
- Specified by:
append
in interfaceISourceAppender
- Specified by:
append
in interfaceITreeAppendable
- Overrides:
append
in classAbstractStringBuilderBasedAppendable
- Parameters:
string
- - notnull
- Returns:
- reference to an ITreeAppendable where the given content got appended
-
append
public ITreeAppendable append(LightweightTypeReference typeRef)
- Specified by:
append
in interfaceIAppendable
- Specified by:
append
in interfaceISourceAppender
- Specified by:
append
in interfaceITreeAppendable
- Overrides:
append
in classAbstractStringBuilderBasedAppendable
-
decreaseIndentation
public ITreeAppendable decreaseIndentation()
- Specified by:
decreaseIndentation
in interfaceIAppendable
- Specified by:
decreaseIndentation
in interfaceISourceAppender
- Specified by:
decreaseIndentation
in interfaceITreeAppendable
- Overrides:
decreaseIndentation
in classAbstractStringBuilderBasedAppendable
-
increaseIndentation
public ITreeAppendable increaseIndentation()
- Specified by:
increaseIndentation
in interfaceIAppendable
- Specified by:
increaseIndentation
in interfaceISourceAppender
- Specified by:
increaseIndentation
in interfaceITreeAppendable
- Overrides:
increaseIndentation
in classAbstractStringBuilderBasedAppendable
-
newLine
public ITreeAppendable newLine()
- Specified by:
newLine
in interfaceIAppendable
- Specified by:
newLine
in interfaceISourceAppender
- Specified by:
newLine
in interfaceITreeAppendable
- Overrides:
newLine
in classAbstractStringBuilderBasedAppendable
-
getTraceRegion
public org.eclipse.xtext.generator.trace.AbstractTraceRegion getTraceRegion()
- Specified by:
getTraceRegion
in interfaceorg.eclipse.xtext.generator.trace.ITraceRegionProvider
-
trace
public ITreeAppendable trace(org.eclipse.emf.ecore.EObject object, boolean useForDebugging)
- Specified by:
trace
in interfaceITreeAppendable
- Parameters:
object
- the object this part should be associated withuseForDebugging
- whether the part is relevant for debugging
-
trace
public ITreeAppendable trace(org.eclipse.xtext.generator.trace.ILocationData location)
- Specified by:
trace
in interfaceITreeAppendable
-
trace
public ITreeAppendable trace(org.eclipse.xtext.generator.trace.ILocationData location, boolean useForDebugging)
- Specified by:
trace
in interfaceITreeAppendable
- Parameters:
location
- the location that should be traceduseForDebugging
- whether the part is relevant for debugging
-
trace
public ITreeAppendable trace(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> objects)
- Specified by:
trace
in interfaceITreeAppendable
- Parameters:
objects
- the iterable ofEObject
s that contribute output. May not be empty.
-
trace
public ITreeAppendable trace(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)
- Specified by:
trace
in interfaceITreeAppendable
-
trace
public ITreeAppendable trace(org.eclipse.emf.ecore.EObject object)
Description copied from interface:ITreeAppendable
same as trace(object, false)- Specified by:
trace
in interfaceITreeAppendable
-
errorChild
public ErrorTreeAppendable errorChild()
- Specified by:
errorChild
in interfaceITreeAppendable
-
-