@GwtIncompatible
@Immutable
public abstract class Source
extends java.lang.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.
|
java.lang.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<java.lang.String,java.lang.String> |
loadFlags()
The load flags, specifying module type and language level.
|
java.lang.String |
originalCode()
The untransformed code from the original source file.
|
abstract java.nio.file.Path |
path()
The path of this source.
|
abstract com.google.common.collect.ImmutableSet<java.lang.String> |
runtimes()
Any runtime libraries necessary for this source.
|
abstract java.lang.String |
sourceMap()
The text of any source map applicable to this file.
|
abstract java.lang.String |
sourceMappingUrl()
The URL for a source map associated with this file.
|
abstract java.lang.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 java.nio.file.Path path()
public abstract java.lang.String sourceMap()
public abstract java.lang.String sourceUrl()
public abstract java.lang.String sourceMappingUrl()
public abstract com.google.common.collect.ImmutableSet<java.lang.String> runtimes()
public abstract com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> loadFlags()
public abstract int estimatedSize()
public final java.lang.String code()
public final java.lang.String originalCode()
public abstract Source.Builder toBuilder()
public static Source.Builder builder()
Copyright © 2009-2018 Google. All Rights Reserved.