Package com.google.common.css
Class SourceCode
- java.lang.Object
-
- com.google.common.css.SourceCode
-
public final class SourceCode extends java.lang.ObjectThis 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.
-
-
Constructor Summary
Constructors Constructor Description SourceCode(java.lang.String fileName, java.lang.String fileContents)Constructs aSourceCode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFileContents()java.lang.StringgetFileName()
-
-
-
Constructor Detail
-
SourceCode
public SourceCode(@Nullable java.lang.String fileName, @Nullable java.lang.String fileContents)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)
-
-