Package | Description |
---|---|
com.google.gwt.core.ext.soyc.impl | |
com.google.gwt.dev.jjs.impl | |
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,String> obfuscateMap) |
Modifier and Type | Method and Description |
---|---|
JsName |
JavaToJavaScriptMap.nameForMethod(JMethod method)
Return the JavaScript name corresponding to a Java method.
|
JsName |
JavaToJavaScriptMap.nameForType(JClassType type)
Return the JavaScript name corresponding to a Java type.
|
Modifier and Type | Method and Description |
---|---|
JField |
JavaToJavaScriptMap.nameToField(JsName name)
If
name is the name of a
var |
JMethod |
JavaToJavaScriptMap.nameToMethod(JsName name)
If
name is the name of a function that corresponds to a Java
method, then return that method. |
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 Pair<JavaToJavaScriptMap,Set<JsNode>> |
GenerateJavaScriptAST.exec(JProgram program,
JsProgram jsProgram,
JsOutputOption outputOption,
Map<StandardSymbolData,JsName> symbolTable,
PropertyOracle[] propertyOracles)
This is the main entry point for the translation from Java to JavaScript.
|
static void |
VerifySymbolMap.exec(JsProgram jsProgram,
JavaToJavaScriptMap jjsmap,
Map<StandardSymbolData,JsName> symbolTable) |
Modifier and Type | Field and Description |
---|---|
protected Set<JsName> |
JsNamer.referenced |
Modifier and Type | Method and Description |
---|---|
static Map<JsName,String> |
JsStringInterner.exec(JProgram jprogram,
JsProgram program,
boolean alwaysIntern)
Apply interning of String literals to a JsProgram.
|
Map<JsName,Integer> |
SizeBreakdown.getSizeMap() |
Modifier and Type | Method and Description |
---|---|
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) |
protected JDeclaredType |
JsSourceGenerationVisitorWithSizeBreakdown.getDirectlyEnclosingType(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.
|
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 |
JsProgram.getIndexedField(String name) |
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 |
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) |
Modifier and Type | Method and Description |
---|---|
void |
JsProgram.setIndexedFields(Map<String,JsName> indexedFields) |
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) |
JsSeedIdOf(SourceInfo info,
JsName name,
int seedId) |
JsVar(SourceInfo sourceInfo,
JsName name) |
Copyright © 2018. All rights reserved.