org.eclipse.xtext.xbase.compiler.output
Interface ITreeAppendable

All Superinterfaces:
IAppendable, ITraceRegionProvider
All Known Implementing Classes:
FakeTreeAppendable, TreeAppendable

@NonNullByDefault
public interface ITreeAppendable
extends IAppendable, ITraceRegionProvider

A specialized appendable that can be used to trace the source location for the written output.

Author:
Sebastian Zarnekow - Initial contribution and API

Method Summary
 ITreeAppendable append(java.lang.CharSequence content)
           
 ITreeAppendable append(JvmType type)
           
 ITreeAppendable decreaseIndentation()
           
 ITreeAppendable increaseIndentation()
           
 ITreeAppendable newLine()
           
 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(ILocationData location)
           
 ITreeAppendable trace(ILocationData location, boolean useForDebugging)
           
 ITreeAppendable trace(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> objects)
           
 
Methods inherited from interface org.eclipse.xtext.xbase.compiler.IAppendable
closeScope, declareSyntheticVariable, declareVariable, getContent, getImports, getName, getObject, hasName, hasObject, length, openPseudoScope, openScope, toString
 
Methods inherited from interface org.eclipse.xtext.generator.trace.ITraceRegionProvider
getTraceRegion
 

Method Detail

trace

ITreeAppendable trace(org.eclipse.emf.ecore.EObject object,
                      boolean useForDebugging)
Parameters:
object - the object this part should be associated with
useForDebugging - whether the part is relevant for debugging

trace

ITreeAppendable trace(org.eclipse.emf.ecore.EObject object)
same as trace(object, false)


trace

ITreeAppendable trace(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> objects)
Parameters:
objects - the iterable of EObjects that contribute output. May not be empty.

trace

ITreeAppendable trace(org.eclipse.emf.ecore.EObject object,
                      org.eclipse.emf.ecore.EStructuralFeature feature,
                      int indexInList)

trace

ITreeAppendable trace(ILocationData location)

trace

ITreeAppendable trace(ILocationData location,
                      boolean useForDebugging)
Parameters:
location - the location that should be traced
useForDebugging - whether the part is relevant for debugging

append

ITreeAppendable append(JvmType type)
Specified by:
append in interface IAppendable

append

ITreeAppendable append(java.lang.CharSequence content)
Specified by:
append in interface IAppendable

decreaseIndentation

ITreeAppendable decreaseIndentation()
Specified by:
decreaseIndentation in interface IAppendable

increaseIndentation

ITreeAppendable increaseIndentation()
Specified by:
increaseIndentation in interface IAppendable

newLine

ITreeAppendable newLine()
Specified by:
newLine in interface IAppendable