public class SourceInfo extends Object
Constructor and Description |
---|
SourceInfo(String className,
String phaseName,
String sectionName) |
Modifier and Type | Method and Description |
---|---|
String |
addBlock(String previousCode,
String codeBlock) |
void |
enhanceTheThrowable(Throwable t)
Enhances a Throwable by replacing mentions of Java code inside a
Jape RhsAction with a reference to the original Jape source where
available.
|
String |
getSource(String source,
int javaLineNumber) |
StackTraceElement |
getStackTraceElement(int javaLineNumber) |
public SourceInfo(String className, String phaseName, String sectionName)
public StackTraceElement getStackTraceElement(int javaLineNumber)
public void enhanceTheThrowable(Throwable t)
t
- the Throwable to enhance with Jape source information