public class SourceMapManager
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SourceMapManager(java.lang.String name,
java.lang.String sourceRoot,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
appendEmptySourceMap(int jsLineCount)
Append a empty source map which would be ignored in mapping
|
void |
appendSourceMap(SourceMapManager newSourceMapManager)
Append a source map
|
void |
appendSourceMap(java.lang.String sourceMapContent,
int jsLineCount,
java.lang.String sourcePath)
Append a source map by content
|
java.lang.String |
getSourceMapContent()
Generate the source map of this mananger.
|
java.util.List<SourceMapInfo> |
getSourceMapInfoList()
Returns a list of source map info
|
java.lang.String |
getSourceMappingURL()
Returns the source mapping url
|
void |
insertEmptySourceMap(int index,
int jsLineCount)
Insert a empty source map which would be ignored in mapping
|
void |
insertSourceMap(int index,
java.lang.String sourceMapContent,
int jsLineCount,
java.lang.String sourcePath)
Insert a source map by content
|
public SourceMapManager(java.lang.String name, java.lang.String sourceRoot, java.lang.String id)
public java.util.List<SourceMapInfo> getSourceMapInfoList()
public java.lang.String getSourceMappingURL()
public void appendEmptySourceMap(int jsLineCount)
jsLineCount
- the number of javascript file linespublic void insertEmptySourceMap(int index, int jsLineCount)
index
- of source map info listjsLineCount
- the number of javascript file linespublic void appendSourceMap(SourceMapManager newSourceMapManager) throws java.io.IOException
newSourceMapManager
- java.io.IOException
public void appendSourceMap(java.lang.String sourceMapContent, int jsLineCount, java.lang.String sourcePath)
sourceMapContent
- the content of source mapjsLineCount
- the number of javascript file linessourcePath
- the javascript source pathpublic void insertSourceMap(int index, java.lang.String sourceMapContent, int jsLineCount, java.lang.String sourcePath)
index
- of source map info listsourceMapContent
- the content of source mapjsLineCount
- the number of javascript file linessourcePath
- the javascript source pathpublic java.lang.String getSourceMapContent() throws java.io.IOException
java.io.IOException
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.