Package | Description |
---|---|
com.google.gwt.core.ext.soyc |
This package contains interfaces that provide access to
"Story of Your Compile" information.
|
com.google.gwt.dev.javac | |
com.google.gwt.dev.jjs | |
com.google.gwt.dev.jjs.ast | |
com.google.gwt.dev.jjs.ast.js | |
com.google.gwt.dev.jjs.impl | |
com.google.gwt.dev.js | |
com.google.gwt.dev.js.ast |
Modifier and Type | Method and Description |
---|---|
SourceInfo |
Range.getSourceInfo() |
Constructor and Description |
---|
Range(int start,
int end,
int startLine,
int startColumn,
int endLine,
int endColumn,
SourceInfo sourceInfo)
A range whose start and end are specified both as character positions and as
line numbers and columns.
|
Range(int start,
int end,
SourceInfo sourceInfo)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static JsFunction |
JsniMethodCollector.parseJsniFunction(org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method,
String unitSource,
String enclosingType,
SourceInfo baseInfo,
JsScope scope) |
static void |
GWTProblem.recordProblem(SourceInfo info,
int startColumn,
org.eclipse.jdt.internal.compiler.CompilationResult compResult,
String message,
TreeLogger.HelpInfo helpInfo,
int problemSeverity) |
static void |
JsniMethodCollector.reportJsniError(SourceInfo info,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method,
String msg) |
static void |
JsniMethodCollector.reportJsniWarning(SourceInfo info,
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration method,
String msg) |
Modifier and Type | Class and Description |
---|---|
class |
SourceInfoCorrelation
Tracks file and line information for AST nodes.
|
class |
SourceOrigin
Describes where a SourceInfo's node came from.
|
Modifier and Type | Method and Description |
---|---|
SourceInfo |
InternalCompilerException.NodeInfo.getSourceInfo()
Returns the node's source info, if available; otherwise
null . |
SourceInfo |
HasSourceInfo.getSourceInfo()
Return the source info associated with this object.
|
SourceInfo |
SourceInfoCorrelation.makeChild() |
SourceInfo |
SourceInfo.makeChild()
Create a child node of the same type and Origin as this node.
|
SourceInfo |
SourceOrigin.makeChild() |
SourceInfo |
SourceInfoCorrelation.makeChild(SourceOrigin origin) |
SourceInfo |
SourceInfo.makeChild(SourceOrigin origin)
Create a child node of the same type as this node, but with a new Origin.
|
SourceInfo |
SourceOrigin.makeChild(SourceOrigin origin) |
abstract SourceInfo |
CorrelationFactory.makeSourceInfo(SourceOrigin origin) |
SourceInfo |
CorrelationFactory.DummyCorrelationFactory.makeSourceInfo(SourceOrigin origin) |
SourceInfo |
CorrelationFactory.RealCorrelationFactory.makeSourceInfo(SourceOrigin origin) |
Modifier and Type | Method and Description |
---|---|
void |
InternalCompilerException.addNode(String className,
String description,
SourceInfo sourceInfo)
Adds information about a a node to the end of the node trace.
|
Modifier and Type | Method and Description |
---|---|
SourceInfo |
JNode.getSourceInfo() |
Modifier and Type | Method and Description |
---|---|
JExpression |
JProgram.createArrayClassLiteralExpression(SourceInfo sourceInfo,
JClassLiteral leafTypeClassLiteral,
int dimensions)
Returns an expression that evaluates to an array class literal at runtime.
|
static JNewArray |
JNewArray.createArrayWithDimensionExpressions(SourceInfo info,
JArrayType arrayType,
List<JExpression> dimensionExpressions) |
static JNewArray |
JNewArray.createArrayWithInitializers(SourceInfo info,
JArrayType arrayType,
List<JExpression> initializers) |
static JBinaryOperation |
JProgram.createAssignment(SourceInfo info,
JExpression lhs,
JExpression rhs) |
static JExpressionStatement |
JProgram.createAssignmentStmt(SourceInfo info,
JExpression lhs,
JExpression rhs)
Helper to create an assignment, used to initialize fields, etc.
|
JParameter |
JMethod.createFinalParameter(SourceInfo info,
String name,
JType type)
Adds a new final parameter to this method.
|
static JLocal |
JProgram.createLocal(SourceInfo info,
String name,
JType type,
boolean isFinal,
JMethodBody enclosingMethodBody) |
JParameter |
JMethod.createParameter(SourceInfo info,
String name,
JType type)
Adds a new parameter to this method.
|
JParameter |
JMethod.createParameter(SourceInfo info,
String name,
JType type,
boolean isFinal,
boolean isVarargs)
Adds a new parameter to this method.
|
JParameterRef |
JParameter.createRef(SourceInfo info) |
JLocalRef |
JLocal.createRef(SourceInfo info) |
static JPermutationDependentValue |
JPermutationDependentValue.createRuntimeProperty(JProgram program,
SourceInfo info,
String propertyName,
JExpression defaultValueExpression) |
JParameter |
JMethod.createThisParameter(SourceInfo info,
JType type)
Creates a parameter to hold the value of this in devirtualized methods.
|
static JPermutationDependentValue |
JPermutationDependentValue.createTypeRebind(JProgram program,
SourceInfo info,
String requestedType,
List<String> resultTypes,
List<JExpression> instantiationExpressions) |
JLiteral |
JProgram.getLiteral(SourceInfo info,
Object value) |
JStringLiteral |
JProgram.getStringLiteral(SourceInfo sourceInfo,
String s) |
JParameterRef |
JParameter.makeRef(SourceInfo info) |
JLocalRef |
JLocal.makeRef(SourceInfo info) |
JFieldRef |
JField.makeRef(SourceInfo info) |
abstract JVariableRef |
JVariable.makeRef(SourceInfo sourceInfo) |
void |
JNode.setSourceInfo(SourceInfo info) |
Constructor and Description |
---|
JDebuggerStatement(SourceInfo info) |
JMultiExpression(SourceInfo info,
Collection<JExpression> expressions)
Construct a multi expression containing
expressions . |
JMultiExpression(SourceInfo info,
JExpression... expressions)
Construct a multi expression containing
expressions if any. |
JsniClassLiteral(SourceInfo info,
JType type) |
JsniClassLiteral(SourceInfo info,
String ident,
JType type) |
JsniFieldRef(SourceInfo info,
String ident,
JField field,
JDeclaredType enclosingType,
boolean isLvalue) |
JsniMethodBody(SourceInfo info) |
JsniMethodBody(SourceInfo info,
JsFunction function,
List<JsniClassLiteral> classRefs,
List<JsniFieldRef> jsniFieldRefs,
List<JsniMethodRef> jsniMethodRefs,
Set<String> stringLiterals) |
JsniMethodRef(SourceInfo info,
String ident,
JMethod method,
JClassType jsoType) |
JsonArray(SourceInfo sourceInfo,
JType arrayType,
JExpression... expressions) |
JsonArray(SourceInfo sourceInfo,
JType arrayType,
List<JExpression> expressions) |
Modifier and Type | Method and Description |
---|---|
void |
EnumOrdinalizer.Tracker.addEnumNotOrdinalizedInfo(String enumName,
SourceInfo info) |
static JExpression |
JjsUtils.createDefaultConstructorInstantiation(SourceInfo info,
JClassType type)
Returns an instantiation expression for
type using the default constructor,
Returns null if type does not have a default constructor. |
static JExpression |
JjsUtils.createOptimizedNotNullComparison(JProgram program,
SourceInfo info,
JExpression expression)
Returns an ast node representing the expression
expression != null . |
protected JLocal |
JModVisitorWithTemporaryVariableCreation.createTempLocal(SourceInfo info,
JType type,
String temporaryLocalName)
Gets a new temporary local variable name in the current method body.
|
String |
EnumOrdinalizer.Tracker.getInfoString(SourceInfo info) |
protected void |
ImplicitUpcastAnalyzer.processImplicitUpcast(JType fromType,
JType destType,
SourceInfo info)
An overriding method will be called for each detected implicit upcast.
|
Modifier and Type | Method and Description |
---|---|
static JsExpression |
JsUtils.createApplyInvocation(SourceInfo sourceInfo,
com.google.gwt.dev.js.JsUtils.InvocationDescriptor invocationDescriptor) |
static JsExpression |
JsUtils.createAssignment(SourceInfo info,
JsExpression lhs,
JsExpression rhs) |
static JsExpression |
JsUtils.createCallInvocationOrSuperPropertyAccess(SourceInfo sourceInfo,
com.google.gwt.dev.js.JsUtils.InvocationDescriptor invocationDescriptor) |
static JsExpression |
JsUtils.createDirectInvocationOrPropertyAccess(SourceInfo sourceInfo,
com.google.gwt.dev.js.JsUtils.InvocationDescriptor invocationDescriptor) |
static JsFunction |
JsUtils.createEmptyFunctionLiteral(SourceInfo info,
JsScope scope,
JsName name) |
static JsExpression |
JsUtils.createInvocationOrPropertyAccess(JsUtils.InvocationStyle invocationStyle,
SourceInfo sourceInfo,
JMethod method,
JsExpression instance,
JsNameRef reference,
List<JsExpression> args) |
static JsExpression |
JsUtils.createQualifiedNameRef(SourceInfo info,
JsExpression base,
String... names) |
static JsNameRef |
JsUtils.createQualifiedNameRef(SourceInfo info,
JsName... names) |
static JsNameRef |
JsUtils.createQualifiedNameRef(String namespace,
SourceInfo sourceInfo)
Given a string qualifier such as 'foo.bar.Baz', returns a chain of JsNameRef's representing
this qualifier.
|
static List<JsStatement> |
JsParser.parse(SourceInfo rootSourceInfo,
JsScope scope,
Reader r) |
static void |
JsParser.parseInto(SourceInfo rootSourceInfo,
JsScope scope,
JsBlock block,
Reader r) |
Modifier and Type | Method and Description |
---|---|
SourceInfo |
JsProgram.createSourceInfo(int lineNumber,
String location) |
SourceInfo |
JsProgram.createSourceInfoSynthetic(Class<?> caller) |
SourceInfo |
JsNode.getSourceInfo() |
Modifier and Type | Method and Description |
---|---|
JsObjectLiteral.Builder |
JsObjectLiteral.Builder.add(SourceInfo sourceInfo,
JsExpression property,
JsExpression value) |
static JsObjectLiteral.Builder |
JsObjectLiteral.builder(SourceInfo info) |
JsNameRef |
JsName.makeQualifiedRef(SourceInfo sourceInfo,
JsExpression qualifier) |
JsNameRef |
JsName.makeRef(SourceInfo sourceInfo) |
void |
JsNode.setSourceInfo(SourceInfo info) |
Copyright © 2018. All rights reserved.