Class SourceMap.File
java.lang.Object
org.spongepowered.asm.mixin.struct.SourceMap.File
- Enclosing class:
SourceMap
Defines a source code file within a source map stratum
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
File index in stratumfinal int
The base line offset for this stratum, line numbers in the output will be offset by this amount from their originalsfinal int
The size of this stratum (number of lines)final String
Actual source file name to include in the smapfinal String
Full path to the source file -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Append lines representing this File to the supplied StringBuildervoid
applyOffset
(org.objectweb.asm.tree.ClassNode classNode) Offset the line numbers in the target class node by the base lineoffset for this stratumvoid
applyOffset
(org.objectweb.asm.tree.MethodNode method) Offset the line numbers in the target method node by the base lineoffset for this stratum
-
Field Details
-
id
public final int idFile index in stratum -
lineOffset
public final int lineOffsetThe base line offset for this stratum, line numbers in the output will be offset by this amount from their originals -
size
public final int sizeThe size of this stratum (number of lines) -
sourceFileName
Actual source file name to include in the smap -
sourceFilePath
Full path to the source file
-
-
Constructor Details
-
File
Create a new SMAP Stratum- Parameters:
lineOffset
- line offsetsize
- total linessourceFileName
- source file name
-
File
Create a new SMAP Stratum- Parameters:
lineOffset
- line offsetsize
- total linessourceFileName
- source file namesourceFilePath
- source path
-
-
Method Details
-
applyOffset
public void applyOffset(org.objectweb.asm.tree.ClassNode classNode) Offset the line numbers in the target class node by the base lineoffset for this stratum- Parameters:
classNode
- class to operate upon
-
applyOffset
public void applyOffset(org.objectweb.asm.tree.MethodNode method) Offset the line numbers in the target method node by the base lineoffset for this stratum- Parameters:
method
- method to operate upon
-
appendLines
Append lines representing this File to the supplied StringBuilder- Parameters:
sb
- StringBuilder to append to
-