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 ITreeAppendableappend(java.lang.CharSequence string)Appends the specified character sequence to this ITreeAppendable.ITreeAppendableappend(java.lang.Class<?> type)ITreeAppendableappend(org.eclipse.xtext.common.types.JvmType type)ITreeAppendableappend(LightweightTypeReference typeRef)ITreeAppendabledecreaseIndentation()ErrorTreeAppendableerrorChild()org.eclipse.xtext.generator.trace.AbstractTraceRegiongetTraceRegion()ITreeAppendableincreaseIndentation()ITreeAppendablenewLine()ITreeAppendabletrace(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> objects)ITreeAppendabletrace(org.eclipse.emf.ecore.EObject object)same as trace(object, false)ITreeAppendabletrace(org.eclipse.emf.ecore.EObject object, boolean useForDebugging)ITreeAppendabletrace(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)ITreeAppendabletrace(org.eclipse.xtext.generator.trace.ILocationData location)ITreeAppendabletrace(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:
appendin interfaceIAppendable- Specified by:
appendin interfaceISourceAppender- Specified by:
appendin interfaceITreeAppendable- Overrides:
appendin classAbstractStringBuilderBasedAppendable
-
append
public ITreeAppendable append(java.lang.Class<?> type)
- Specified by:
appendin interfaceITreeAppendable- Overrides:
appendin classAbstractStringBuilderBasedAppendable
-
append
public ITreeAppendable append(java.lang.CharSequence string)
Description copied from interface:ITreeAppendableAppends the specified character sequence to this ITreeAppendable.- Specified by:
appendin interfaceIAppendable- Specified by:
appendin interfaceISourceAppender- Specified by:
appendin interfaceITreeAppendable- Overrides:
appendin classAbstractStringBuilderBasedAppendable- Parameters:
string- - notnull- Returns:
- reference to an ITreeAppendable where the given content got appended
-
append
public ITreeAppendable append(LightweightTypeReference typeRef)
- Specified by:
appendin interfaceIAppendable- Specified by:
appendin interfaceISourceAppender- Specified by:
appendin interfaceITreeAppendable- Overrides:
appendin classAbstractStringBuilderBasedAppendable
-
decreaseIndentation
public ITreeAppendable decreaseIndentation()
- Specified by:
decreaseIndentationin interfaceIAppendable- Specified by:
decreaseIndentationin interfaceISourceAppender- Specified by:
decreaseIndentationin interfaceITreeAppendable- Overrides:
decreaseIndentationin classAbstractStringBuilderBasedAppendable
-
increaseIndentation
public ITreeAppendable increaseIndentation()
- Specified by:
increaseIndentationin interfaceIAppendable- Specified by:
increaseIndentationin interfaceISourceAppender- Specified by:
increaseIndentationin interfaceITreeAppendable- Overrides:
increaseIndentationin classAbstractStringBuilderBasedAppendable
-
newLine
public ITreeAppendable newLine()
- Specified by:
newLinein interfaceIAppendable- Specified by:
newLinein interfaceISourceAppender- Specified by:
newLinein interfaceITreeAppendable- Overrides:
newLinein classAbstractStringBuilderBasedAppendable
-
getTraceRegion
public org.eclipse.xtext.generator.trace.AbstractTraceRegion getTraceRegion()
- Specified by:
getTraceRegionin interfaceorg.eclipse.xtext.generator.trace.ITraceRegionProvider
-
trace
public ITreeAppendable trace(org.eclipse.emf.ecore.EObject object, boolean useForDebugging)
- Specified by:
tracein 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:
tracein interfaceITreeAppendable
-
trace
public ITreeAppendable trace(org.eclipse.xtext.generator.trace.ILocationData location, boolean useForDebugging)
- Specified by:
tracein 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:
tracein interfaceITreeAppendable- Parameters:
objects- the iterable ofEObjects 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:
tracein interfaceITreeAppendable
-
trace
public ITreeAppendable trace(org.eclipse.emf.ecore.EObject object)
Description copied from interface:ITreeAppendablesame as trace(object, false)- Specified by:
tracein interfaceITreeAppendable
-
errorChild
public ErrorTreeAppendable errorChild()
- Specified by:
errorChildin interfaceITreeAppendable
-
-