Package | Description |
---|---|
com.google.gwt.dev.jjs.ast | |
com.google.gwt.dev.jjs.ast.js | |
com.google.gwt.dev.jjs.impl |
Modifier and Type | Class and Description |
---|---|
class |
JModVisitor
A visitor for iterating through and modifying an AST.
|
Modifier and Type | Method and Description |
---|---|
void |
JIfStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JDoStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JInstanceOf.traverse(JVisitor visitor,
Context ctx) |
void |
JNameOf.traverse(JVisitor visitor,
Context ctx) |
void |
JLocalRef.traverse(JVisitor visitor,
Context ctx) |
void |
JConditional.traverse(JVisitor visitor,
Context ctx) |
void |
JThisRef.traverse(JVisitor visitor,
Context ctx) |
void |
JPermutationDependentValue.traverse(JVisitor visitor,
Context ctx) |
void |
JSwitchStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JNumericEntry.traverse(JVisitor visitor,
Context ctx) |
void |
JRuntimeTypeReference.traverse(JVisitor visitor,
Context ctx) |
void |
JContinueStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JClassType.traverse(JVisitor visitor,
Context ctx) |
void |
JPrefixOperation.traverse(JVisitor visitor,
Context ctx) |
void |
JBinaryOperation.traverse(JVisitor visitor,
Context ctx) |
void |
JDoubleLiteral.traverse(JVisitor visitor,
Context ctx) |
abstract void |
JNode.traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
void |
JCastOperation.traverse(JVisitor visitor,
Context ctx) |
void |
JConstructor.traverse(JVisitor visitor,
Context ctx) |
void |
JBlock.traverse(JVisitor visitor,
Context ctx) |
void |
JParameter.traverse(JVisitor visitor,
Context ctx) |
void |
JWhileStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JPostfixOperation.traverse(JVisitor visitor,
Context ctx) |
void |
JCharLiteral.traverse(JVisitor visitor,
Context ctx) |
void |
JTryStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JArrayRef.traverse(JVisitor visitor,
Context ctx) |
void |
JCaseStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JProgram.traverse(JVisitor visitor,
Context ctx) |
void |
JLabel.traverse(JVisitor visitor,
Context ctx) |
void |
JLocal.traverse(JVisitor visitor,
Context ctx) |
void |
JArrayType.traverse(JVisitor visitor,
Context ctx) |
void |
JField.traverse(JVisitor visitor,
Context ctx) |
void |
JMethodBody.traverse(JVisitor visitor,
Context ctx) |
void |
JMethodCall.traverse(JVisitor visitor,
Context ctx) |
void |
JUnaryOperation.traverse(JVisitor visitor,
Context ctx) |
void |
JNullLiteral.traverse(JVisitor visitor,
Context ctx) |
void |
JCastMap.traverse(JVisitor visitor,
Context ctx) |
void |
JParameterRef.traverse(JVisitor visitor,
Context ctx) |
void |
JExpressionStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JBooleanLiteral.traverse(JVisitor visitor,
Context ctx) |
void |
JFieldRef.traverse(JVisitor visitor,
Context ctx) |
void |
JAssertStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JInterfaceType.traverse(JVisitor visitor,
Context ctx) |
void |
JStringLiteral.traverse(JVisitor visitor,
Context ctx) |
void |
JArrayLength.traverse(JVisitor visitor,
Context ctx) |
void |
JLabeledStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JFloatLiteral.traverse(JVisitor visitor,
Context ctx) |
void |
JIntLiteral.traverse(JVisitor visitor,
Context ctx) |
void |
JLongLiteral.traverse(JVisitor visitor,
Context ctx) |
void |
JForStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JBreakStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JReturnStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JPrimitiveType.traverse(JVisitor visitor,
Context ctx) |
void |
JRunAsync.traverse(JVisitor visitor,
Context ctx) |
void |
JMethod.traverse(JVisitor visitor,
Context ctx) |
void |
JClassLiteral.traverse(JVisitor visitor,
Context ctx) |
void |
JUnsafeTypeCoercion.traverse(JVisitor visitor,
Context ctx) |
void |
JNewInstance.traverse(JVisitor visitor,
Context ctx) |
void |
JThrowStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JDeclarationStatement.traverse(JVisitor visitor,
Context ctx) |
void |
JNewArray.traverse(JVisitor visitor,
Context ctx) |
void |
JRunAsync.traverseOnSuccess(JVisitor visitor)
Explcitly traverse the onSuccessCall.
|
void |
JProgram.visitAllTypes(JVisitor visitor) |
protected void |
JMethodCall.visitChildren(JVisitor visitor) |
protected void |
JMethod.visitChildren(JVisitor visitor) |
void |
JProgram.visitModuleTypes(JVisitor visitor) |
Modifier and Type | Method and Description |
---|---|
void |
JsniMethodRef.traverse(JVisitor visitor,
Context ctx) |
void |
JMultiExpression.traverse(JVisitor visitor,
Context ctx) |
void |
JsniFieldRef.traverse(JVisitor visitor,
Context ctx) |
void |
JsonArray.traverse(JVisitor visitor,
Context ctx) |
void |
JsniMethodBody.traverse(JVisitor visitor,
Context ctx) |
void |
JsniClassLiteral.traverse(JVisitor visitor,
Context ctx) |
void |
JDebuggerStatement.traverse(JVisitor visitor,
Context ctx) |
Modifier and Type | Class and Description |
---|---|
class |
CloneExpressionVisitor
A general purpose expression cloner.
|
class |
ControlFlowRecorder
Records control flow information.
|
class |
DeadCodeElimination.DeadCodeVisitor
Eliminates dead or unreachable code when possible, and makes local
simplifications like changing "
x || true " to "x ". |
static class |
DeadCodeElimination.FindBreakContinueStatementsVisitor
Examines code to find out whether it contains any break or continue
statements.
|
class |
ExpressionAnalyzer
Analyzes an expression and make a number of static analysis flags available
based on the information available solely through the expression.
|
class |
FixAssignmentsToUnboxOrCast
Most autoboxing is handled by
GenerateJavaAST . |
class |
ImplicitUpcastAnalyzer
This class will identify instances of an implicit upcast between
non-primitive types, and call the overridable processImplicitUpcast method.
|
class |
JavaAstVerifier
Verifies that all the references from AST nodes to AST nodes are reachable from the
top of the AST.
|
class |
JChangeTrackingVisitor
A visitor for optimizing an AST.
|
class |
JModVisitorWithTemporaryVariableCreation
A JModVisitor capable of creating temporary local variables and placing their declarations in an
appropriate preceding place.
|
class |
MethodCallTightener.MethodCallTighteningVisitor
Updates polymorphic method calls to tighter bindings based on the type of
the qualifier.
|
static class |
RemoveEmptySuperCalls.EmptySuperCallVisitor
Removes calls to no-op super constructors.
|
class |
RemoveSpecializations
Remove all method specializations before final pruning pass.
|
class |
RewriteConstructorCallsForUnboxedTypes
Rewrite instantiations of Boolean, Double, and String to use static helper methods which return
unboxed versions.
|
class |
SourceGenerationVisitor
Generates Java source from our AST.
|
class |
TextOutputVisitor
A convenience base class that combines a
JVisitor with a
TextOutput . |
class |
ToStringGenerationVisitor
Implements a reasonable toString() for all JNodes.
|
class |
TypeReferencesRecorder
Records Type->Type references.
|
class |
TypeRemapper
A visitor that changes all JType references in the AST.
|
class |
TypeTightener.FixDanglingRefsVisitor
Replaces dangling null references with dummy calls.
|
class |
TypeTightener.TightenTypesVisitor
Wherever possible, use the type flow information recorded by RecordVisitor
to change the declared type of a field, local, parameter, or method to a
more specific type.
|
Modifier and Type | Method and Description |
---|---|
void |
OptimizerContext.traverse(JVisitor visitor,
Set<? extends JNode> nodes)
Traverse the affected methods and fields.
|
void |
FullOptimizerContext.traverse(JVisitor visitor,
Set<? extends JNode> nodes) |
Copyright © 2018. All rights reserved.