Class TranspileResult
- java.lang.Object
-
- com.google.javascript.jscomp.transpile.TranspileResult
-
public final class TranspileResult extends java.lang.Object
The 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 TranspileResult
embedSourcemap()
TranspileResult
embedSourcemapBase64()
TranspileResult
embedSourcemapUrl(java.lang.String url)
boolean
equals(java.lang.Object other)
int
hashCode()
java.lang.String
original()
java.net.URI
path()
java.lang.String
sourceMap()
java.lang.String
toString()
java.lang.String
transpiled()
boolean
wasTranspiled()
-
-
-
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()
-
embedSourcemapBase64
public TranspileResult embedSourcemapBase64()
-
transpiled
public java.lang.String transpiled()
-
wasTranspiled
public boolean wasTranspiled()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-