Class AbstractTraceRegionToString
- java.lang.Object
-
- org.eclipse.xtext.generator.trace.AbstractTraceRegionToString
-
public abstract class AbstractTraceRegionToString extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractTraceRegionToString.File
protected static class
AbstractTraceRegionToString.Insert
protected static class
AbstractTraceRegionToString.LocationHandle
protected static class
AbstractTraceRegionToString.RegionHandle
-
Constructor Summary
Constructors Constructor Description AbstractTraceRegionToString()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
add(java.util.Map<SourceRelativeURI,AbstractTraceRegionToString.File> files, SourceRelativeURI uri, org.eclipse.xtext.util.ITextRegion it, AbstractTraceRegionToString.RegionHandle region, AbstractTraceRegionToString.LocationHandle location)
protected void
add(AbstractTraceRegionToString.File file, org.eclipse.xtext.util.ITextRegion it, AbstractTraceRegionToString.RegionHandle region, AbstractTraceRegionToString.LocationHandle location)
protected int
collect(AbstractTraceRegion reg, int nextID, AbstractTraceRegionToString.File lFile, java.util.Map<SourceRelativeURI,AbstractTraceRegionToString.File> rFiles, java.util.List<AbstractTraceRegionToString.RegionHandle> result)
protected <T> java.util.Set<T>
collect(T start, org.eclipse.xtext.xbase.lib.Functions.Function1<? super T,? extends java.lang.Iterable<T>> reachable)
protected <R extends java.util.Collection<? super T>,T>
Rcollect(T start, org.eclipse.xtext.xbase.lib.Functions.Function1<? super T,? extends java.lang.Iterable<T>> reachable, R collector)
protected org.eclipse.xtext.util.ITextRegion
getLocalFrame()
protected abstract java.lang.String
getLocalText()
protected java.lang.String
getLocalTitle()
int
getRadix()
protected org.eclipse.xtext.util.ITextRegion
getRemoteFrame(SourceRelativeURI uri)
protected abstract java.lang.String
getRemoteText(SourceRelativeURI uri)
protected java.lang.String
getRemoteTitle(SourceRelativeURI uri)
protected abstract AbstractTraceRegion
getTrace()
boolean
isShowLegend()
boolean
isShowTree()
protected java.lang.String
render()
protected java.lang.String
render(java.util.Collection<AbstractTraceRegionToString.Insert> inserts, int width)
protected java.util.List<java.lang.String>
render(AbstractTraceRegionToString.File file, int width)
protected java.lang.String
render(AbstractTraceRegionToString.Insert it, int width)
protected java.lang.String
render(AbstractTraceRegionToString.LocationHandle loc)
protected void
render(AbstractTraceRegionToString.RegionHandle region, int idW, int offsetW, int lengthW, int indent, java.util.List<java.lang.String> result)
void
setRadix(int radix)
void
setShowLegend(boolean showLegend)
void
setShowTree(boolean showTree)
protected boolean
shouldInclude(AbstractTraceRegion region)
protected boolean
shouldInclude(AbstractTraceRegion region, ILocationData location)
protected int
sortKey(AbstractTraceRegionToString.Insert it)
protected java.lang.String
title(SourceRelativeURI uri, int width)
java.lang.String
toString()
-
-
-
Method Detail
-
getRemoteText
protected abstract java.lang.String getRemoteText(SourceRelativeURI uri)
-
getLocalText
protected abstract java.lang.String getLocalText()
-
getTrace
protected abstract AbstractTraceRegion getTrace()
-
getLocalFrame
protected org.eclipse.xtext.util.ITextRegion getLocalFrame()
-
getRemoteFrame
protected org.eclipse.xtext.util.ITextRegion getRemoteFrame(SourceRelativeURI uri)
-
getLocalTitle
protected java.lang.String getLocalTitle()
-
getRemoteTitle
protected java.lang.String getRemoteTitle(SourceRelativeURI uri)
-
shouldInclude
protected boolean shouldInclude(AbstractTraceRegion region)
-
shouldInclude
protected boolean shouldInclude(AbstractTraceRegion region, ILocationData location)
-
add
protected void add(java.util.Map<SourceRelativeURI,AbstractTraceRegionToString.File> files, SourceRelativeURI uri, org.eclipse.xtext.util.ITextRegion it, AbstractTraceRegionToString.RegionHandle region, AbstractTraceRegionToString.LocationHandle location)
-
add
protected void add(AbstractTraceRegionToString.File file, org.eclipse.xtext.util.ITextRegion it, AbstractTraceRegionToString.RegionHandle region, AbstractTraceRegionToString.LocationHandle location)
-
collect
protected int collect(AbstractTraceRegion reg, int nextID, AbstractTraceRegionToString.File lFile, java.util.Map<SourceRelativeURI,AbstractTraceRegionToString.File> rFiles, java.util.List<AbstractTraceRegionToString.RegionHandle> result)
-
render
protected java.lang.String render(AbstractTraceRegionToString.Insert it, int width)
-
sortKey
protected int sortKey(AbstractTraceRegionToString.Insert it)
-
render
protected java.lang.String render(java.util.Collection<AbstractTraceRegionToString.Insert> inserts, int width)
-
render
protected java.util.List<java.lang.String> render(AbstractTraceRegionToString.File file, int width)
-
title
protected java.lang.String title(SourceRelativeURI uri, int width)
-
collect
protected <T> java.util.Set<T> collect(T start, org.eclipse.xtext.xbase.lib.Functions.Function1<? super T,? extends java.lang.Iterable<T>> reachable)
-
collect
protected <R extends java.util.Collection<? super T>,T> R collect(T start, org.eclipse.xtext.xbase.lib.Functions.Function1<? super T,? extends java.lang.Iterable<T>> reachable, R collector)
-
render
protected java.lang.String render(AbstractTraceRegionToString.LocationHandle loc)
-
render
protected void render(AbstractTraceRegionToString.RegionHandle region, int idW, int offsetW, int lengthW, int indent, java.util.List<java.lang.String> result)
-
render
protected java.lang.String render()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getRadix
public int getRadix()
-
setRadix
public void setRadix(int radix)
-
isShowTree
public boolean isShowTree()
-
setShowTree
public void setShowTree(boolean showTree)
-
isShowLegend
public boolean isShowLegend()
-
setShowLegend
public void setShowLegend(boolean showLegend)
-
-