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
Methods inherited from interface org.eclipse.xtext.xbase.compiler.IAppendable |
closeScope, declareSyntheticVariable, declareVariable, getContent, getImports, getName, getObject, hasName, hasObject, length, openPseudoScope, openScope, toString |
trace
ITreeAppendable trace(org.eclipse.emf.ecore.EObject object,
boolean useForDebugging)
- Parameters:
object
- the object this part should be associated withuseForDebugging
- 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 EObject
s 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 traceduseForDebugging
- 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