public class UnminimizeHelper extends AbstractLogEnabled implements Component, Serviceable, Contextualizable
Modifier and Type | Field and Description |
---|---|
private static String |
__MINIMIZED_RESOURCES_PREFIX |
protected Context |
_context
Avalon context
|
protected SourceResolver |
_resolver
SourceResolver
|
protected SourceMapCache |
_sourceMapCache
The SourceMap cache
|
Constructor and Description |
---|
UnminimizeHelper() |
Modifier and Type | Method and Description |
---|---|
private String |
_getSourceMap(String filename,
Map<String,String> resolvedCache,
String workspaceURI) |
private void |
_setMappingData(Map<String,String> data,
String sourceMapContent) |
void |
contextualize(Context context) |
void |
service(ServiceManager manager) |
List<Map<String,String>> |
unminifyStackTrace(List<Map<String,String>> stacktraceData)
Undo the mapping of the stacktrace by providing the original filename, line and column
|
getLogger, setLogger
private static final String __MINIMIZED_RESOURCES_PREFIX
protected SourceMapCache _sourceMapCache
protected SourceResolver _resolver
public UnminimizeHelper()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public List<Map<String,String>> unminifyStackTrace(List<Map<String,String>> stacktraceData) throws SourceNotFoundException, IOException, com.google.debugging.sourcemap.SourceMapParseException
stacktraceData
- The list of stacktrace data, containing the filename, line and column of the minimized fileSourceNotFoundException
- If an error occurredIOException
- If an error occurredcom.google.debugging.sourcemap.SourceMapParseException
- If an error occurredprivate String _getSourceMap(String filename, Map<String,String> resolvedCache, String workspaceURI) throws MalformedURLException, IOException, SourceNotFoundException
private void _setMappingData(Map<String,String> data, String sourceMapContent) throws com.google.debugging.sourcemap.SourceMapParseException
com.google.debugging.sourcemap.SourceMapParseException