Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.rhino |
The core AST from Rhino.
|
Modifier and Type | Method and Description |
---|---|
StaticSourceFile.SourceKind |
SourceFile.getKind()
Returns the source kind.
|
Modifier and Type | Method and Description |
---|---|
static SourceFile |
SourceFile.fromCode(java.lang.String fileName,
java.lang.String code,
StaticSourceFile.SourceKind kind) |
static SourceFile |
SourceFile.fromFile(java.lang.String fileName,
java.nio.charset.Charset charset,
StaticSourceFile.SourceKind kind) |
static SourceFile |
SourceFile.fromPath(java.nio.file.Path path,
java.nio.charset.Charset charset,
StaticSourceFile.SourceKind kind) |
void |
SourceFile.setKind(StaticSourceFile.SourceKind kind)
Sets the source kind.
|
SourceFile.Builder |
SourceFile.Builder.withKind(StaticSourceFile.SourceKind kind)
Set the source kind.
|
Constructor and Description |
---|
SourceFile(java.lang.String fileName,
StaticSourceFile.SourceKind kind)
Construct a new abstract source file.
|
Modifier and Type | Method and Description |
---|---|
StaticSourceFile.SourceKind |
SimpleSourceFile.getKind() |
StaticSourceFile.SourceKind |
StaticSourceFile.getKind()
The source kind.
|
static StaticSourceFile.SourceKind |
StaticSourceFile.SourceKind.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StaticSourceFile.SourceKind[] |
StaticSourceFile.SourceKind.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
SimpleSourceFile(java.lang.String name,
StaticSourceFile.SourceKind kind) |
Copyright © 2009-2019 Google. All Rights Reserved.