public static class SourceMap.File
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
id
File index in stratum
|
int |
lineOffset
The base line offset for this stratum, line numbers in the output
will be offset by this amount from their originals
|
int |
size
The size of this stratum (number of lines)
|
java.lang.String |
sourceFileName
Actual source file name to include in the smap
|
java.lang.String |
sourceFilePath
Full path to the source file
|
| Constructor and Description |
|---|
File(int id,
int lineOffset,
int size,
java.lang.String sourceFileName)
Create a new SMAP Stratum
|
File(int id,
int lineOffset,
int size,
java.lang.String sourceFileName,
java.lang.String sourceFilePath)
Create a new SMAP Stratum
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendLines(java.lang.StringBuilder sb)
Append lines representing this File to the supplied StringBuilder
|
void |
applyOffset(org.objectweb.asm.tree.ClassNode classNode)
Offset the line numbers in the target class node by the base
lineoffset for this stratum
|
void |
applyOffset(org.objectweb.asm.tree.MethodNode method)
Offset the line numbers in the target method node by the base
lineoffset for this stratum
|
public final int id
public final int lineOffset
public final int size
public final java.lang.String sourceFileName
public final java.lang.String sourceFilePath
public File(int id,
int lineOffset,
int size,
java.lang.String sourceFileName)
lineOffset - line offsetsize - total linessourceFileName - source file namepublic File(int id,
int lineOffset,
int size,
java.lang.String sourceFileName,
java.lang.String sourceFilePath)
lineOffset - line offsetsize - total linessourceFileName - source file namesourceFilePath - source pathpublic void applyOffset(org.objectweb.asm.tree.ClassNode classNode)
classNode - class to operate uponpublic void applyOffset(org.objectweb.asm.tree.MethodNode method)
method - method to operate uponpublic void appendLines(java.lang.StringBuilder sb)
sb - StringBuilder to append to