Class SourceMap
java.lang.Object
org.spongepowered.asm.mixin.struct.SourceMap
public class SourceMap
extends java.lang.Object
Structure which contains information about a SourceDebugExtension SMAP
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSourceMap.FileDefines a source code file within a source map stratum -
Constructor Summary
Constructors Constructor Description SourceMap(java.lang.String sourceFile) -
Method Summary
Modifier and Type Method Description SourceMap.FileaddFile(java.lang.String sourceFileName, java.lang.String sourceFilePath, int size)Add a file to this SourceMap in the default stratumSourceMap.FileaddFile(java.lang.String stratumName, java.lang.String sourceFileName, java.lang.String sourceFilePath, int size)Add a file to this SourceMap in the specified stratumSourceMap.FileaddFile(java.lang.String stratumName, org.objectweb.asm.tree.ClassNode classNode)Add a file to this SourceMap in the specified stratumSourceMap.FileaddFile(org.objectweb.asm.tree.ClassNode classNode)Add a file to this SourceMap in the default stratumjava.lang.StringgetPseudoGeneratedSourceFile()Get the generated source filejava.lang.StringgetSourceFile()Get the original source filejava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
SourceMap
public SourceMap(java.lang.String sourceFile)
-
-
Method Details
-
getSourceFile
public java.lang.String getSourceFile()Get the original source file -
getPseudoGeneratedSourceFile
public java.lang.String getPseudoGeneratedSourceFile()Get the generated source file -
addFile
Add a file to this SourceMap in the default stratum- Parameters:
classNode- class node to read details from- Returns:
- new File
-
addFile
public SourceMap.File addFile(java.lang.String stratumName, org.objectweb.asm.tree.ClassNode classNode)Add a file to this SourceMap in the specified stratum- Parameters:
stratumName- name of the stratum to add toclassNode- class node to read file details from- Returns:
- new File
-
addFile
public SourceMap.File addFile(java.lang.String sourceFileName, java.lang.String sourceFilePath, int size)Add a file to this SourceMap in the default stratum- Parameters:
sourceFileName- source filenamesourceFilePath- path to source filesize- number of lines to allocate- Returns:
- new File
-
addFile
public SourceMap.File addFile(java.lang.String stratumName, java.lang.String sourceFileName, java.lang.String sourceFilePath, int size)Add a file to this SourceMap in the specified stratum- Parameters:
stratumName- name of the stratum to add tosourceFileName- source filenamesourceFilePath- path to source filesize- number of lines to allocate- Returns:
- new File
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-