Package jetbrains.mps.textgen.trace
Class TraceInfo
- java.lang.Object
 - 
- jetbrains.mps.textgen.trace.TraceInfo
 
 
- 
public final class TraceInfo extends Object
Auxiliary methods to extract information fromDebugInfoeasily. FIXME statics are not very smart way to deal with trace.info, provided we no longer cache these files, unless TraceInfoCache instance is shared between the calls (e.g. seeDefaultTraceInfoProvider) 
- 
- 
Constructor Summary
Constructors Constructor Description TraceInfo() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DebugInfogetDebugInfo(SModel model)TraceablePositionInfogetPosition(SNode node)static TraceablePositionInfogetPositionForNode(SNode node)Deprecated.usegetPosition(SNode)insteadCollection<String>getUnitNames(SNode node)booleanhasDebugInfo(SModel model)booleanhasDebugInfo(SNode node)static booleanhasTrace(SModel model)Deprecated.use instance methodhasDebugInfo(SModel)instead When removing, consider instance method with same name.static booleanhasTrace(SNode node)Deprecated.use instancehasDebugInfo(SNode)insteadstatic List<String>unitNames(SNode node)Deprecated.usegetUnitNames(SNode)instead 
 - 
 
- 
- 
Method Detail
- 
hasTrace
@Deprecated public static boolean hasTrace(@Nullable SModel model)
Deprecated.use instance methodhasDebugInfo(SModel)instead When removing, consider instance method with same name. 
- 
hasTrace
@Deprecated public static boolean hasTrace(@Nullable SNode node)
Deprecated.use instancehasDebugInfo(SNode)instead 
- 
getPositionForNode
@Nullable @Deprecated public static TraceablePositionInfo getPositionForNode(@Nullable SNode node)
Deprecated.usegetPosition(SNode)instead 
- 
getPosition
@Nullable public TraceablePositionInfo getPosition(@Nullable SNode node)
 
- 
getUnitNames
@NotNull public Collection<String> getUnitNames(@Nullable SNode node)
 
- 
unitNames
@Deprecated @NotNull public static List<String> unitNames(@NotNull SNode node)
Deprecated.usegetUnitNames(SNode)instead 
 - 
 
 -