Class DependencyGraphRecorder
java.lang.Object
com.google.gwt.core.ext.soyc.impl.DependencyRecorder
com.google.gwt.core.ext.soyc.coderef.DependencyGraphRecorder
- All Implemented Interfaces:
com.google.gwt.dev.jjs.impl.codesplitter.MultipleDependencyGraphRecorder
,com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.DependencyRecorder
public class DependencyGraphRecorder
extends com.google.gwt.core.ext.soyc.impl.DependencyRecorder
Builds the model for the (new) soyc through reading method dependencies. The code model is in a
mapping from fully qualified class names (eg. com.google.gwt.MyClass, see
JType.getName()
) to class descriptors. Where
each class descriptor has methods and their dependents.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.core.ext.soyc.impl.DependencyRecorder
com.google.gwt.core.ext.soyc.impl.DependencyRecorder.NestedIOException
-
Field Summary
Fields inherited from interface com.google.gwt.dev.jjs.impl.codesplitter.MultipleDependencyGraphRecorder
NULL_RECORDER
-
Constructor Summary
ConstructorDescriptionDependencyGraphRecorder
(OutputStream out, com.google.gwt.dev.jjs.ast.JProgram jProgram) -
Method Summary
Modifier and TypeMethodDescriptionclassDescriptorFrom
(com.google.gwt.dev.jjs.ast.JDeclaredType classType) Returns a class descriptor from a JDeclaredType.Returns the code model that maps fully qualified class names (eg.protected boolean
isValid
(int n) methodDescriptorFrom
(com.google.gwt.dev.jjs.ast.JMethod method) protected int
protected void
printMethodDependencyBetween
(com.google.gwt.dev.jjs.ast.JMethod curMethod, com.google.gwt.dev.jjs.ast.JMethod depMethod) protected String
signatureFor
(com.google.gwt.dev.jjs.ast.JMethod method) void
startDependencyGraph
(String name, String extendz) Start a new dependency graph.Methods inherited from class com.google.gwt.core.ext.soyc.impl.DependencyRecorder
close, endDependencyGraph, methodIsLiveBecause, open, recordDependenciesImpl
-
Constructor Details
-
DependencyGraphRecorder
-
-
Method Details
-
nextPointerId
protected int nextPointerId() -
getCodeModel
Returns the code model that maps fully qualified class names (eg. com.google.gwt.MyClass, seeJType.getName()
) to class descriptors. -
startDependencyGraph
Description copied from interface:com.google.gwt.dev.jjs.impl.codesplitter.MultipleDependencyGraphRecorder
Start a new dependency graph. It can be an extension of a previously recorded dependency graph, in which case the dependencies in the previous graph will not be repeated.- Specified by:
startDependencyGraph
in interfacecom.google.gwt.dev.jjs.impl.codesplitter.MultipleDependencyGraphRecorder
- Overrides:
startDependencyGraph
in classcom.google.gwt.core.ext.soyc.impl.DependencyRecorder
-
printMethodDependencyBetween
protected void printMethodDependencyBetween(com.google.gwt.dev.jjs.ast.JMethod curMethod, com.google.gwt.dev.jjs.ast.JMethod depMethod) - Overrides:
printMethodDependencyBetween
in classcom.google.gwt.core.ext.soyc.impl.DependencyRecorder
-
signatureFor
-
methodDescriptorFrom
-
isValid
protected boolean isValid(int n) -
classDescriptorFrom
Returns a class descriptor from a JDeclaredType. If the class descriptor is not in the code model, it will be added.
-