Class NullGssSourceMapGenerator
- java.lang.Object
-
- com.google.common.css.compiler.passes.NullGssSourceMapGenerator
-
- All Implemented Interfaces:
GssSourceMapGenerator
public final class NullGssSourceMapGenerator extends java.lang.Object implements GssSourceMapGenerator
Null class implementsGssSourceMapGenerator.
-
-
Constructor Summary
Constructors Constructor Description NullGssSourceMapGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendOutputTo(java.lang.Appendable out, java.lang.String name)Appends the generated source map toout.voidendSourceMapping(CssNode node, int endLine, int endCharIndex)Finishes the source mapping for the given node at the current position.voidsetSourceRoot(java.lang.String path)A prefix to be added to the beginning of each source file name.voidstartSourceMapping(CssNode node, int startLine, int startCharIndex)Starts the source mapping for the given node at the current position.
-
-
-
Method Detail
-
appendOutputTo
public void appendOutputTo(java.lang.Appendable out, java.lang.String name)Description copied from interface:GssSourceMapGeneratorAppends the generated source map toout.- Specified by:
appendOutputToin interfaceGssSourceMapGenerator- Parameters:
out- anAppendableobject to append the output onname- filename to be written inside the source map (not the filename where writes at)
-
startSourceMapping
public void startSourceMapping(CssNode node, int startLine, int startCharIndex)
Description copied from interface:GssSourceMapGeneratorStarts the source mapping for the given node at the current position. This is intended to be called before the node is written to the buffer.- Specified by:
startSourceMappingin interfaceGssSourceMapGenerator- Parameters:
node- theCssNodeto be processedstartLine- the first character's line number once it starts writing outputstartCharIndex- the first character's character index once it starts writing output
-
endSourceMapping
public void endSourceMapping(CssNode node, int endLine, int endCharIndex)
Description copied from interface:GssSourceMapGeneratorFinishes the source mapping for the given node at the current position. This is intended to be called immediately after the whole node is written to the buffer.- Specified by:
endSourceMappingin interfaceGssSourceMapGenerator- Parameters:
node- theCssNodeto be processedendLine- the last character's line number when it ends writing outputendCharIndex- the last character's character index when it ends writing output or one less than the correspondingstartCharIndexif a source mapping is empty.
-
setSourceRoot
public void setSourceRoot(java.lang.String path)
Description copied from interface:GssSourceMapGeneratorA prefix to be added to the beginning of each source file name. Debuggers expect (prefix + sourceName) to be a URL for loading the source code.- Specified by:
setSourceRootin interfaceGssSourceMapGenerator- Parameters:
path- The URL prefix to save in the sourcemap file.
-
-