Package jetbrains.mps.textgen.trace
Class NodeTraceInfo
- java.lang.Object
 - 
- jetbrains.mps.textgen.trace.NodeTraceInfo
 
 
- 
public final class NodeTraceInfo extends Object
Utility to keep node-centric operations over DebugInfo structure that are not appropriate for the trace structure itself. XXX SNode may serve as input for multiple snippets throughout several files, here we track units/positions from 'primary' output which is the one from the root of the node supplied.- Since:
 - 3.4
 
 
- 
- 
Constructor Summary
Constructors Constructor Description NodeTraceInfo(SNodeReference nodeReference)Null-safe object, without any trace, for non-existent node.NodeTraceInfo(SNode node, DebugInfo debugInfo)Regular scenario, trace utility for existing node, with optional debug information. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileName()SNodeReferencegetNode()TraceablePositionInfogetPosition()StringgetUnitName()booleanhasTrace() 
 - 
 
- 
- 
Constructor Detail
- 
NodeTraceInfo
public NodeTraceInfo(@NotNull SNodeReference nodeReference)
Null-safe object, without any trace, for non-existent node. 
 - 
 
- 
Method Detail
- 
getNode
@NotNull public SNodeReference getNode()
 
- 
hasTrace
public boolean hasTrace()
 
- 
getPosition
@Nullable public TraceablePositionInfo getPosition()
 
 - 
 
 -