Package | Description |
---|---|
com.google.gwt.dev | |
com.google.gwt.dev.cfg | |
com.google.gwt.dev.javac | |
com.google.gwt.dev.javac.typemodel |
Type-introspection support classes used by generators.
|
com.google.gwt.dev.jjs | |
com.google.gwt.dev.jjs.impl |
Modifier and Type | Field and Description |
---|---|
protected CompilerContext |
DevModeBase.compilerContext |
Modifier and Type | Method and Description |
---|---|
CompilerContext |
CompilerContext.Builder.build() |
Modifier and Type | Method and Description |
---|---|
static PermutationResult |
CompilePerms.compile(TreeLogger logger,
CompilerContext compilerContext,
Permutation permutation,
UnifiedAst unifiedAst)
Compile a single permutation.
|
static void |
CompilePerms.compile(TreeLogger logger,
CompilerContext compilerContext,
Precompilation precompilation,
Permutation[] perms,
int localWorkers,
List<PersistenceBackedObject<PermutationResult>> resultFiles)
Compile multiple permutations.
|
static void |
PermutationWorkerFactory.compilePermutations(TreeLogger logger,
CompilerContext compilerContext,
Precompilation precompilation,
int localWorkers,
List<PersistenceBackedObject<PermutationResult>> resultFiles)
Compiles all Permutations in a Precompilation and returns an array of Files
that can be consumed by Link using the system-default
PermutationWorkersFactories.
|
static void |
PermutationWorkerFactory.compilePermutations(TreeLogger logger,
CompilerContext compilerContext,
Precompilation precompilation,
Permutation[] permutations,
int localWorkers,
List<PersistenceBackedObject<PermutationResult>> resultFiles)
Compiles a subset of the Permutations in a Precompilation and returns an
array of Files that can be consumed by Link using the system-default
PermutationWorkersFactories.
|
static Precompilation |
Precompile.precompile(TreeLogger logger,
CompilerContext compilerContext)
Precompiles the given module.
|
static boolean |
Precompile.validate(TreeLogger logger,
CompilerContext compilerContext)
Validates the given module can be compiled.
|
Modifier and Type | Method and Description |
---|---|
static ModuleDef |
ModuleDefLoader.createSyntheticModule(TreeLogger logger,
CompilerContext compilerContext,
String moduleName,
String[] inherits,
boolean refresh)
Creates a module in memory that is not associated with a
.gwt.xml file on disk. |
CompilationState |
ModuleDef.getCompilationState(TreeLogger logger,
CompilerContext compilerContext) |
static ModuleDef |
ModuleDefLoader.loadFromClassPath(TreeLogger logger,
CompilerContext compilerContext,
String moduleName)
Loads a new module from the class path and defers scanning associated directories for
resources.
|
static ModuleDef |
ModuleDefLoader.loadFromClassPath(TreeLogger logger,
CompilerContext compilerContext,
String moduleName,
boolean refresh)
Loads a new module from the class path and may or may not immediately scan associated
directories for resources.
|
static ModuleDef |
ModuleDefLoader.loadFromResources(TreeLogger logger,
CompilerContext compilerContext,
String moduleName,
ResourceLoader resources,
boolean refresh)
Loads a new module from the given ResourceLoader and may or may not immediately scan associated
directories for resources.
|
Modifier and Type | Method and Description |
---|---|
CompilerContext |
CompilationState.getCompilerContext() |
Modifier and Type | Method and Description |
---|---|
static void |
CompilationStateBuilder.addArchive(CompilerContext compilerContext,
CompilationUnitArchive compilationUnitArchive)
Use previously compiled
CompilationUnit s to pre-populate the unit cache. |
static CompilationState |
CompilationStateBuilder.buildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources)
Compiles the given source files and adds them to the CompilationState.
|
static CompilationState |
CompilationStateBuilder.buildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources,
JdtCompiler.AdditionalTypeProviderDelegate delegate)
Compiles the given source files and adds them to the CompilationState.
|
static List<CompilationUnit> |
JdtCompiler.compile(TreeLogger logger,
CompilerContext compilerContext,
Collection<CompilationUnitBuilder> builders)
Compiles the given set of units.
|
CompilationState |
CompilationStateBuilder.doBuildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources) |
CompilationState |
CompilationStateBuilder.doBuildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources,
JdtCompiler.AdditionalTypeProviderDelegate compilerDelegate)
Build a new compilation state from a source oracle.
|
static int |
CompilationProblemReporter.logErrorTrace(TreeLogger logger,
TreeLogger.Type logLevel,
CompilerContext compilerContext,
List<CompilationUnit> units,
boolean hint)
Provides meaningful error messages and hints for types that failed to compile or are otherwise
missing.
|
static void |
CompilationProblemReporter.logErrorTrace(TreeLogger logger,
TreeLogger.Type logLevel,
CompilerContext compilerContext,
String typeSourceName,
boolean hint)
Provides a meaning error message and hints for a type that failed to compile or is otherwise
missing.
|
Constructor and Description |
---|
CompileMoreLater(CompilerContext compilerContext,
JdtCompiler.AdditionalTypeProviderDelegate delegate) |
JdtCompiler(CompilerContext compilerContext,
JdtCompiler.UnitProcessor processor) |
LibraryCompilationUnitTypeOracleUpdater(TypeOracle typeOracle,
CompilerContext compilerContext) |
StandardGeneratorContext(CompilerContext compilerContext,
CompilationState compilationState,
ArtifactSet allGeneratedArtifacts,
boolean isProdMode)
Normally, the compiler host would be aware of the same types that are
available in the supplied type oracle although it isn't strictly required.
|
Constructor and Description |
---|
LibraryTypeOracle(CompilerContext compilerContext) |
Modifier and Type | Field and Description |
---|---|
protected CompilerContext |
JavaToJavaScriptCompiler.compilerContext |
Modifier and Type | Method and Description |
---|---|
PermutationResult |
UnifiedAst.compilePermutation(TreeLogger logger,
CompilerContext compilerContext,
Permutation permutation)
Compiles a particular permutation.
|
protected abstract void |
JavaToJavaScriptCompiler.Precompiler.createJProgram(CompilerContext compilerContext) |
UnifiedAst |
JavaScriptCompiler.precompile(TreeLogger logger,
CompilerContext compilerContext,
RebindPermutationOracle rpo,
String[] declEntryPts,
String[] additionalRootTypes,
boolean singlePermutation,
PrecompilationMetricsArtifact precompilationMetrics) |
UnifiedAst |
AbstractCompiler.precompile(TreeLogger logger,
CompilerContext compilerContext,
RebindPermutationOracle rpo,
String[] declEntryPts,
String[] additionalRootTypes,
boolean singlePermutation,
PrecompilationMetricsArtifact precompilationMetrics)
Performs a precompilation, returning an object that can then be used to
compile individual permutations..
|
Constructor and Description |
---|
JavaToJavaScriptCompiler(TreeLogger logger,
CompilerContext compilerContext) |
LibraryJavaToJavaScriptCompiler(TreeLogger logger,
CompilerContext compilerContext)
Constructs a JavaToJavaScriptCompiler with customizations for compiling independent libraries.
|
MonolithicJavaToJavaScriptCompiler(TreeLogger logger,
CompilerContext compilerContext)
Constructs a JavaToJavaScriptCompiler with customizations for compiling independent libraries.
|
Modifier and Type | Method and Description |
---|---|
static Pair<JavaToJavaScriptMap,Set<JsNode>> |
GenerateJavaScriptAST.exec(TreeLogger logger,
JProgram program,
JsProgram jsProgram,
CompilerContext compilerContext,
ResolveRuntimeTypeReferences.TypeMapper<?> typeMapper,
Map<StandardSymbolData,JsName> symbolTable,
PermProps props)
This is the main entry point for the translation from Java to JavaScript.
|
List<JDeclaredType> |
GwtAstBuilder.process(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration cud,
String sourceMapPath,
Map<org.eclipse.jdt.internal.compiler.ast.MethodDeclaration,JsniMethod> jsniMethods,
Map<String,org.eclipse.jdt.internal.compiler.lookup.Binding> jsniRefs,
CompilerContext compilerContext)
Builds all the GWT AST nodes that correspond to one Java source file.
|
Constructor and Description |
---|
UnifyAst(TreeLogger logger,
CompilerContext compilerContext,
JProgram program,
JsProgram jsProgram,
RebindPermutationOracle rpo) |
Copyright © 2018. All rights reserved.