Class SourceMap.File
java.lang.Object
org.spongepowered.asm.mixin.struct.SourceMap.File
- Enclosing class:
- SourceMap
public static class SourceMap.File
extends java.lang.Object
Defines a source code file within a source map stratum
-
Field Summary
Fields Modifier and Type Field Description intidFile index in stratumintlineOffsetThe base line offset for this stratum, line numbers in the output will be offset by this amount from their originalsintsizeThe size of this stratum (number of lines)java.lang.StringsourceFileNameActual source file name to include in the smapjava.lang.StringsourceFilePathFull path to the source file -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidappendLines(java.lang.StringBuilder sb)Append lines representing this File to the supplied StringBuildervoidapplyOffset(org.objectweb.asm.tree.ClassNode classNode)Offset the line numbers in the target class node by the base lineoffset for this stratumvoidapplyOffset(org.objectweb.asm.tree.MethodNode method)Offset the line numbers in the target method node by the base lineoffset for this stratumMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public final java.lang.String sourceFileNameActual source file name to include in the smap -
sourceFilePath
public final java.lang.String sourceFilePathFull path to the source file
-
-
Constructor Details
-
File
public File(int id, int lineOffset, int size, java.lang.String sourceFileName)Create a new SMAP Stratum- Parameters:
lineOffset- line offsetsize- total linessourceFileName- source file name
-
File
public File(int id, int lineOffset, int size, java.lang.String sourceFileName, java.lang.String sourceFilePath)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
public void appendLines(java.lang.StringBuilder sb)Append lines representing this File to the supplied StringBuilder- Parameters:
sb- StringBuilder to append to
-