@GwtIncompatible public abstract class Source extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Source.Builder
Builder for Source instances.
|
static interface |
Source.Transformer
An automorphic transformation on sources.
|
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
static Source.Builder |
builder()
Makes a new empty builder.
|
String |
code()
The actual code in this source file.
|
abstract int |
estimatedSize()
A best estimate of the size of this source (in case the source itself is not yet loaded.
|
abstract com.google.common.collect.ImmutableMap<String,String> |
loadFlags()
The load flags, specifying module type and language level.
|
String |
originalCode()
The untransformed code from the original source file.
|
abstract Path |
path()
The path of this source.
|
abstract com.google.common.collect.ImmutableSet<String> |
runtimes()
Any runtime libraries necessary for this source.
|
abstract String |
sourceMap()
The text of any source map applicable to this file.
|
abstract String |
sourceMappingUrl()
The URL for a source map associated with this file.
|
abstract String |
sourceUrl()
The source URL associated with this file.
|
abstract Source.Builder |
toBuilder()
Copies the data from this source to a new builder.
|
public abstract Path path()
public abstract String sourceMap()
public abstract String sourceUrl()
public abstract String sourceMappingUrl()
public abstract com.google.common.collect.ImmutableSet<String> runtimes()
public abstract com.google.common.collect.ImmutableMap<String,String> loadFlags()
public abstract int estimatedSize()
public final String code()
public final String originalCode()
public abstract Source.Builder toBuilder()
public static Source.Builder builder()
Copyright © 2009-2017 Google. All Rights Reserved.