Interface ITreeAppendable
-
- All Superinterfaces:
IAppendable,ISourceAppender,org.eclipse.xtext.generator.trace.ITraceRegionProvider
- All Known Implementing Classes:
ErrorTreeAppendable,FakeTreeAppendable,TreeAppendable
public interface ITreeAppendable extends IAppendable, org.eclipse.xtext.generator.trace.ITraceRegionProvider
A specialized appendable that can be used to trace the source location for the written output.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ITreeAppendableappend(java.lang.CharSequence content)Appends the specified character sequence to this ITreeAppendable.ITreeAppendableappend(java.lang.Class<?> type)ITreeAppendableappend(org.eclipse.xtext.common.types.JvmType type)ITreeAppendableappend(LightweightTypeReference typeRef)default ITreeAppendableblankLine()Defaults tonewLine()but can be customized to behave differently, for example, to insert a blank line without indentation.ITreeAppendabledecreaseIndentation()ErrorTreeAppendableerrorChild()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 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
-
-
-
-
Method Detail
-
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 ofEObjects 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(org.eclipse.xtext.generator.trace.ILocationData location)
-
trace
ITreeAppendable trace(org.eclipse.xtext.generator.trace.ILocationData location, boolean useForDebugging)
- Parameters:
location- the location that should be traceduseForDebugging- whether the part is relevant for debugging
-
errorChild
ErrorTreeAppendable errorChild()
-
append
ITreeAppendable append(org.eclipse.xtext.common.types.JvmType type)
- Specified by:
appendin interfaceIAppendable- Specified by:
appendin interfaceISourceAppender
-
append
ITreeAppendable append(java.lang.Class<?> type)
-
append
ITreeAppendable append(LightweightTypeReference typeRef)
- Specified by:
appendin interfaceIAppendable- Specified by:
appendin interfaceISourceAppender
-
append
ITreeAppendable append(java.lang.CharSequence content)
Appends the specified character sequence to this ITreeAppendable.- Specified by:
appendin interfaceIAppendable- Specified by:
appendin interfaceISourceAppender- Parameters:
content- - notnull- Returns:
- reference to an ITreeAppendable where the given content got appended
-
decreaseIndentation
ITreeAppendable decreaseIndentation()
- Specified by:
decreaseIndentationin interfaceIAppendable- Specified by:
decreaseIndentationin interfaceISourceAppender
-
increaseIndentation
ITreeAppendable increaseIndentation()
- Specified by:
increaseIndentationin interfaceIAppendable- Specified by:
increaseIndentationin interfaceISourceAppender
-
newLine
ITreeAppendable newLine()
- Specified by:
newLinein interfaceIAppendable- Specified by:
newLinein interfaceISourceAppender
-
blankLine
default ITreeAppendable blankLine()
Defaults tonewLine()but can be customized to behave differently, for example, to insert a blank line without indentation.- Since:
- 2.27
-
-