Package | Description |
---|---|
com.google.gwt.core.ext.soyc.impl | |
com.google.gwt.dev.jjs.impl | |
com.google.gwt.dev.jjs.impl.codesplitter | |
com.google.gwt.dev.js | |
com.google.gwt.dev.js.ast |
Modifier and Type | Method and Description |
---|---|
static void |
SizeMapRecorder.recordMap(TreeLogger logger,
OutputStream out,
SizeBreakdown[] sizeBreakdowns,
JavaToJavaScriptMap jjsmap,
Map<JsName,JsLiteral> internedLiteralByVariableName) |
Modifier and Type | Method and Description |
---|---|
JsName |
JavaToJavaScriptMapImpl.nameForField(JField field) |
JsName |
JavaToJavaScriptMap.nameForField(JField field)
Return the JavaScript name corresponding to a Java field.
|
JsName |
JavaToJavaScriptMapImpl.nameForMethod(JMethod method) |
JsName |
JavaToJavaScriptMap.nameForMethod(JMethod method)
Return the JavaScript name corresponding to a Java method.
|
JsName |
JavaToJavaScriptMapImpl.nameForType(JDeclaredType type) |
JsName |
JavaToJavaScriptMap.nameForType(JDeclaredType type)
Return the JavaScript name corresponding to a Java type.
|
Modifier and Type | Method and Description |
---|---|
JField |
JavaToJavaScriptMapImpl.nameToField(JsName name) |
JField |
JavaToJavaScriptMap.nameToField(JsName name)
If
name is the name of a
var |
JMethod |
JavaToJavaScriptMapImpl.nameToMethod(JsName name) |
JMethod |
JavaToJavaScriptMap.nameToMethod(JsName name)
If
name is the name of a function that corresponds to a Java
method, then return that method. |
JClassType |
JavaToJavaScriptMapImpl.nameToType(JsName name) |
JClassType |
JavaToJavaScriptMap.nameToType(JsName name)
If
name is the name of a constructor function corresponding to
a Java type, then return that type. |
Modifier and Type | Method and Description |
---|---|
static void |
VerifySymbolMap.exec(JsProgram jsProgram,
JavaToJavaScriptMap jjsmap,
Map<StandardSymbolData,JsName> symbolTable) |
static Pair<JavaToJavaScriptMap,Set<JsNode>> |
GenerateJavaScriptAST.exec(TreeLogger logger,
JProgram program,
JsProgram jsProgram,
CompilerContext compilerContext,
ResolveRuntimeTypeReferences.TypeMapper<?> typeMapper,
Map<StandardSymbolData,JsName> symbolTable,
PermutationProperties props)
This is the main entry point for the translation from Java to JavaScript.
|
Constructor and Description |
---|
JavaToJavaScriptMapImpl(List<JDeclaredType> types,
Map<HasName,JsName> names,
Map<JsStatement,JDeclaredType> typeForStatement,
Map<JsStatement,JMethod> methodForStatement) |
Constructor and Description |
---|
FragmentExtractor(JsProgram jsprogram,
JavaToJavaScriptMap map,
JsName asyncFragmentLoaderOnLoadFnName,
JsName defineClassFnName) |
Modifier and Type | Field and Description |
---|---|
protected Set<JsName> |
JsNamer.referenced |
Modifier and Type | Method and Description |
---|---|
static JsName |
JsUtils.getJsNameForField(JavaToJavaScriptMap jjsmap,
JProgram jprogram,
String indexedMethodName) |
static JsName |
JsUtils.getJsNameForMethod(JavaToJavaScriptMap jjsmap,
JProgram jprogram,
String indexedMethodName) |
Modifier and Type | Method and Description |
---|---|
static Map<JsName,JsLiteral> |
JsLiteralInterner.exec(JProgram jprogram,
JsProgram program,
int whatToIntern)
Apply interning of literals to a JsProgram.
|
Map<JsName,Integer> |
SizeBreakdown.getSizeMap() |
Modifier and Type | Method and Description |
---|---|
static JsFunction |
JsUtils.createBridge(JMethod method,
JsName polyName,
JsScope scope) |
static JsFunction |
JsUtils.createEmptyFunctionLiteral(SourceInfo info,
JsScope scope,
JsName name) |
static JsNameRef |
JsUtils.createQualifiedNameRef(SourceInfo info,
JsName... names) |
protected <T extends JsVisitable> |
JsSourceGenerationVisitorWithSizeBreakdown.generateAndBill(T node,
JsName nameToBillTo)
Generate some JavaScript and bill the number of characters generated to the given name.
|
protected <T extends JsVisitable> |
JsReportGenerationVisitor.generateAndBill(T node,
JsName nameToBillTo) |
Constructor and Description |
---|
SizeBreakdown(int size,
Map<JsName,Integer> sizeMap) |
Modifier and Type | Class and Description |
---|---|
class |
JsRootName
A well-known name in the root scope.
|
Modifier and Type | Method and Description |
---|---|
JsName |
JsScope.declareName(String ident)
Gets a name object associated with the specified ident in this scope, creating it if necessary.
|
JsName |
JsScope.declareName(String ident,
String shortIdent)
Gets a name object associated with the specified ident in this scope, creating it if necessary.
|
JsName |
JsScope.declareUnobfuscatableName(String ident)
Gets a name object associated with the specified ident in this scope, creating it if necessary,
and makes it non obfuscatable.
|
protected JsName |
JsRootScope.doCreateName(String ident,
String shortIdent) |
protected JsName |
JsNormalScope.doCreateName(String ident,
String shortIdent)
Creates a new name in this scope.
|
protected abstract JsName |
JsScope.doCreateName(String ident,
String shortIdent)
Creates a new name in this scope.
|
protected JsName |
JsCatchScope.doCreateName(String ident,
String shortIdent) |
JsName |
JsScope.findExistingName(String ident)
Attempts to find the name object for the specified ident, searching in this scope, and if not
found, in the parent scopes.
|
protected JsName |
JsRootScope.findExistingNameNoRecurse(String ident) |
protected JsName |
JsNormalScope.findExistingNameNoRecurse(String ident)
Attempts to find the name object for the specified ident, searching in this scope only.
|
protected abstract JsName |
JsScope.findExistingNameNoRecurse(String ident)
Attempts to find the name object for the specified ident, searching in this scope only.
|
protected JsName |
JsCatchScope.findExistingNameNoRecurse(String ident) |
JsName |
JsScope.findExistingUnobfuscatableName(String ident)
Attempts to find an unobfuscatable name object for the specified ident, searching in this
scope, and if not found, in the parent scopes.
|
JsName |
JsForIn.getIterVarName() |
JsName |
JsParameter.getName() |
JsName |
JsNameOf.getName() |
JsName |
JsVars.JsVar.getName() |
JsName |
JsLabel.getName() |
JsName |
JsNameRef.getName() |
JsName |
JsFunction.getName() |
JsName |
HasName.getName() |
JsName |
JsName.getNamespace() |
JsName |
JsRootScope.getUndefined() |
Modifier and Type | Method and Description |
---|---|
Iterable<JsName> |
JsRootScope.getAllNames() |
Iterable<JsName> |
JsNormalScope.getAllNames()
Returns an iterator for all the names defined by this scope.
|
abstract Iterable<JsName> |
JsScope.getAllNames()
Returns an iterable for all the names defined by this scope.
|
Iterable<JsName> |
JsCatchScope.getAllNames() |
Modifier and Type | Method and Description |
---|---|
void |
JsNameRef.resolve(JsName name) |
void |
JsFunction.setName(JsName name) |
void |
JsName.setNamespace(JsName namespace) |
Constructor and Description |
---|
JsForIn(SourceInfo sourceInfo,
JsName iterVarName) |
JsFunction(SourceInfo sourceInfo,
JsScope parent,
JsName name)
Creates a function that is not derived from Java source.
|
JsFunction(SourceInfo sourceInfo,
JsScope parent,
JsName name,
boolean fromJava)
Creates a named function, possibly derived from Java source.
|
JsLabel(SourceInfo sourceInfo,
JsName label) |
JsNameOf(SourceInfo info,
JsName name) |
JsNameRef(SourceInfo sourceInfo,
JsName name) |
JsParameter(SourceInfo sourceInfo,
JsName name) |
JsVar(SourceInfo sourceInfo,
JsName name) |
Copyright © 2018. All rights reserved.