Package | Description |
---|---|
com.google.gwt.dev.js | |
com.google.gwt.dev.js.ast |
Modifier and Type | Field and Description |
---|---|
protected Stack<JsExpression> |
JsHoister.Cloner.stack |
Modifier and Type | Method and Description |
---|---|
protected static JsExpression |
JsStaticEval.extractExpression(JsStatement stmt)
Attempts to extract a single expression from a given statement and returns
it.
|
JsExpression |
JsHoister.Cloner.getExpression() |
static JsExpression |
JsHoister.hoist(JsExpression expression)
Given a JsStatement, construct an expression to hoist into the outer
caller.
|
protected static JsExpression |
JsStaticEval.shortCircuitAnd(JsBinaryOperation expr)
Simplify short circuit AND expressions.
|
protected static JsExpression |
JsStaticEval.shortCircuitOr(JsBinaryOperation expr)
Simplify short circuit OR expressions.
|
protected static JsExpression |
JsStaticEval.trySimplifyComma(JsBinaryOperation expr) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
CoverageVisitor.endVisit(JsExpression x,
JsContext ctx) |
static boolean |
JsConstructExpressionVisitor.exec(JsExpression expression) |
static JsExpression |
JsHoister.hoist(JsExpression expression)
Given a JsStatement, construct an expression to hoist into the outer
caller.
|
static JsFunction |
JsUtils.isFunction(JsExpression e)
Given an expression, determine if it is a JsNameRef that refers to a
statically-defined JsFunction.
|
Modifier and Type | Class and Description |
---|---|
class |
JsArrayAccess
Represents a javascript expression for array access.
|
class |
JsArrayLiteral
Represents a JavaScript expression for array literals.
|
class |
JsBinaryOperation
Represents a JavaScript binary operation.
|
class |
JsBooleanLiteral
Represents a JavaScript literal boolean expression.
|
class |
JsConditional
Represents a JavaScript conditional expression.
|
class |
JsFunction
Represents a JavaScript function expression.
|
class |
JsInvocation
Represents a JavaScript invocation.
|
class |
JsLiteral
A JavaScript string literal expression.
|
class |
JsNameOf
An AST node whose evaluation results in the string name of its node.
|
class |
JsNameRef
Represents a JavaScript expression that references a name.
|
class |
JsNew
Represents the JavaScript new expression.
|
class |
JsNullLiteral
A JavaScript null literal.
|
class |
JsNumberLiteral
Represents a JavaScript literal decimal expression.
|
class |
JsNumericEntry
Represent an index that can be replacable by the compiler at compile time.
|
class |
JsObjectLiteral
A JavaScript object literal.
|
class |
JsPostfixOperation
A JavaScript postfix operation.
|
class |
JsPrefixOperation
A JavaScript prefix operation.
|
class |
JsRegExp
A JavaScript regular expression.
|
class |
JsStringLiteral
A JavaScript string literal expression.
|
class |
JsThisRef
A JavaScript
this reference. |
class |
JsUnaryOperation
A JavaScript prefix or postfix operation.
|
class |
JsValueLiteral
A JavaScript string literal expression.
|
Modifier and Type | Method and Description |
---|---|
List<JsExpression> |
JsNew.getArguments() |
List<JsExpression> |
JsInvocation.getArguments() |
List<JsExpression> |
HasArguments.getArguments() |
List<JsExpression> |
JsArrayLiteral.getExpressions() |
Modifier and Type | Method and Description |
---|---|
JsExpression |
JsVisitor.acceptLvalue(JsExpression expr) |
void |
JsObjectLiteral.addProperty(SourceInfo sourceInfo,
JsExpression label,
JsExpression value)
Adds a property and its initial value to the object literal.
|
protected JsExpression |
JsVisitor.doAcceptLvalue(JsExpression expr) |
protected JsExpression |
JsModVisitor.doAcceptLvalue(JsExpression expr) |
void |
JsSuperVisitor.endVisit(JsExpression x,
JsContext ctx) |
void |
JsUnaryOperation.setArg(JsExpression arg) |
void |
JsBinaryOperation.setArg1(JsExpression arg1) |
void |
JsBinaryOperation.setArg2(JsExpression arg2) |
void |
JsArrayAccess.setArrayExpr(JsExpression arrayExpr) |
void |
JsCase.setCaseExpr(JsExpression caseExpr) |
void |
JsFor.setCondition(JsExpression condition) |
void |
JsDoWhile.setCondition(JsExpression condition) |
void |
JsCatch.setCondition(JsExpression condition) |
void |
JsWhile.setCondition(JsExpression condition) |
void |
JsConditional.setElseExpression(JsExpression elseExpr) |
void |
JsReturn.setExpr(JsExpression expr) |
void |
JsThrow.setExpr(JsExpression expr) |
void |
JsSwitch.setExpr(JsExpression expr) |
void |
JsIf.setIfExpr(JsExpression ifExpr) |
void |
JsFor.setIncrExpr(JsExpression incrExpr) |
void |
JsArrayAccess.setIndexExpr(JsExpression indexExpr) |
void |
JsVars.JsVar.setInitExpr(JsExpression initExpr) |
void |
JsFor.setInitExpr(JsExpression initExpr) |
void |
JsForIn.setIterExpr(JsExpression iterExpr) |
void |
JsPropertyInitializer.setLabelExpr(JsExpression labelExpr) |
void |
JsForIn.setObjExpr(JsExpression objExpr) |
void |
JsNameRef.setQualifier(JsExpression qualifier) |
void |
JsInvocation.setQualifier(JsExpression qualifier) |
void |
JsConditional.setTestExpression(JsExpression testExpr) |
void |
JsConditional.setThenExpression(JsExpression thenExpr) |
void |
JsPropertyInitializer.setValueExpr(JsExpression valueExpr) |
boolean |
JsSuperVisitor.visit(JsExpression x,
JsContext ctx) |
Constructor and Description |
---|
JsInvocation(SourceInfo sourceInfo,
JsFunction function,
Collection<JsExpression> args) |
JsInvocation(SourceInfo sourceInfo,
JsNameRef function,
Collection<JsExpression> args) |
Copyright © 2018. All rights reserved.