Class TranspileResult
- java.lang.Object
-
- com.google.javascript.jscomp.transpile.TranspileResult
-
public final class TranspileResult extends java.lang.ObjectThe result of transpiling a single file. Includes transpiled and original source, and an optional source map.
-
-
Constructor Summary
Constructors Constructor Description TranspileResult(java.net.URI path, java.lang.String original, java.lang.String transpiled, java.lang.String sourceMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranspileResultembedSourcemap()TranspileResultembedSourcemapUrl(java.lang.String url)booleanequals(java.lang.Object other)inthashCode()java.lang.Stringoriginal()java.net.URIpath()java.lang.StringsourceMap()java.lang.StringtoString()java.lang.Stringtranspiled()booleanwasTranspiled()
-
-
-
Method Detail
-
path
public java.net.URI path()
-
original
public java.lang.String original()
-
sourceMap
public java.lang.String sourceMap()
-
embedSourcemapUrl
public TranspileResult embedSourcemapUrl(java.lang.String url)
-
embedSourcemap
public TranspileResult embedSourcemap()
-
transpiled
public java.lang.String transpiled()
-
wasTranspiled
public boolean wasTranspiled()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-