org.eclipse.xtext.xbase.compiler.output
Class AppendableBasedTraceRegion

java.lang.Object
  extended by org.eclipse.xtext.generator.trace.AbstractTraceRegion
      extended by org.eclipse.xtext.xbase.compiler.output.AppendableBasedTraceRegion

@NonNullByDefault
public class AppendableBasedTraceRegion
extends AbstractTraceRegion

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
AppendableBasedTraceRegion(AbstractTraceRegion parent, TreeAppendable delegate, int offset, int lineNumber)
           
 
Method Summary
protected  void compressTrace(java.lang.String completeContent)
           
 java.util.List<ILocationData> getAssociatedLocations()
           
 int getMyEndLineNumber()
           
 int getMyLength()
           
 int getMyLineNumber()
           
 int getMyOffset()
           
protected  boolean hasVisibleChildren(TreeAppendable castedChild)
           
 boolean isUseForDebugging()
           
protected  void leftCompressTrace(java.lang.String completeContent)
           
protected  void rightCompressTrace(java.lang.String completeContent)
           
 
Methods inherited from class org.eclipse.xtext.generator.trace.AbstractTraceRegion
collectMatchingLocations, createLocationData, equals, getAnnotatedString, getAssociatedPath, getAssociatedProjectName, getCollectingList, getMergedAssociatedLocation, getMyRegion, getNestedRegions, getParent, getWritableNestedRegions, hashCode, inplaceSortByOffset, invertAll, invertFor, isConsistentWithParent, leafIterator, setAsChildIn, setParent, toInvertedTraceRegions, toString, treeIterator
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppendableBasedTraceRegion

public AppendableBasedTraceRegion(@Nullable
                                  AbstractTraceRegion parent,
                                  TreeAppendable delegate,
                                  int offset,
                                  int lineNumber)
Method Detail

isUseForDebugging

public boolean isUseForDebugging()
Overrides:
isUseForDebugging in class AbstractTraceRegion

compressTrace

protected void compressTrace(java.lang.String completeContent)

leftCompressTrace

protected void leftCompressTrace(java.lang.String completeContent)

rightCompressTrace

protected void rightCompressTrace(java.lang.String completeContent)

hasVisibleChildren

protected boolean hasVisibleChildren(TreeAppendable castedChild)

getMyLength

public int getMyLength()
Specified by:
getMyLength in class AbstractTraceRegion

getMyOffset

public int getMyOffset()
Specified by:
getMyOffset in class AbstractTraceRegion

getMyLineNumber

public int getMyLineNumber()
Specified by:
getMyLineNumber in class AbstractTraceRegion

getMyEndLineNumber

public int getMyEndLineNumber()
Specified by:
getMyEndLineNumber in class AbstractTraceRegion

getAssociatedLocations

public java.util.List<ILocationData> getAssociatedLocations()
Specified by:
getAssociatedLocations in class AbstractTraceRegion