Package com.google.common.css
Class SourceCode
java.lang.Object
com.google.common.css.SourceCode
- All Implemented Interfaces:
Serializable
This is a wrapper for a file that will be compiled. It conveniently stores
both the file name and the file contents, so that the parser does not have
to deal with IO.
Instances of this class are immutable.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SourceCode
Constructs aSourceCode. At least one of fileName and fileContents must be non-null.- Parameters:
fileName- the name of the source code file ornullif the input does not come from a filefileContents- the contents of the source code file ornullif the file contents is not yet known (the file has not yet been read)
-
-
Method Details
-
getFileName
-
getFileContents
-