Modifier and Type | Method and Description |
---|---|
Set<JMethod> |
MethodDescriptor.getMethodReferences()
Returns the set of JMethods that share the same signature.
|
Modifier and Type | Method and Description |
---|---|
void |
MethodDescriptor.addReference(JMethod methodRef) |
static MethodDescriptor |
MethodDescriptor.from(ClassDescriptor classDescriptor,
JMethod method,
String signature)
Creates a method descriptor from a JMethod with its original signature, and set its enclosing
class.
|
MethodDescriptor |
DependencyGraphRecorder.methodDescriptorFrom(JMethod method) |
MethodDescriptor |
ClassDescriptor.methodFrom(JMethod method,
String signature)
Returns a method descriptor from a JMethod and its original signature (prior any modifications).
|
protected void |
DependencyGraphRecorder.printMethodDependencyBetween(JMethod curMethod,
JMethod depMethod) |
protected String |
DependencyGraphRecorder.signatureFor(JMethod method) |
Modifier and Type | Method and Description |
---|---|
StandardMethodMember |
MemberFactory.get(JMethod method) |
void |
DependencyRecorder.methodIsLiveBecause(JMethod liveMethod,
List<JMethod> dependencyChain)
Used to record the dependencies of a specific method.
|
protected void |
DependencyRecorder.printMethodDependencyBetween(JMethod curMethod,
JMethod depMethod) |
Modifier and Type | Method and Description |
---|---|
void |
DependencyRecorder.methodIsLiveBecause(JMethod liveMethod,
List<JMethod> dependencyChain)
Used to record the dependencies of a specific method.
|
Constructor and Description |
---|
StandardMethodMember(MemberFactory factory,
JMethod method)
Constructed by
MemberFactory.get(JMethod) . |
Modifier and Type | Method and Description |
---|---|
static void |
JsInteropUtil.maybeSetJsInteropProperties(JMethod method,
boolean generateExport,
org.eclipse.jdt.internal.compiler.ast.Annotation... annotations) |
Modifier and Type | Method and Description |
---|---|
JMethod |
Correlation.getMethod() |
Modifier and Type | Method and Description |
---|---|
abstract Correlation |
CorrelationFactory.by(JMethod method) |
Correlation |
CorrelationFactory.DummyCorrelationFactory.by(JMethod method) |
Correlation |
CorrelationFactory.RealCorrelationFactory.by(JMethod method) |
Modifier and Type | Class and Description |
---|---|
class |
JConstructor
A Java constructor method.
|
Modifier and Type | Field and Description |
---|---|
protected JMethod |
JAbstractMethodBody.method |
static JMethod |
JMethod.NULL_METHOD |
Modifier and Type | Field and Description |
---|---|
static Comparator<JMethod> |
JMethod.BY_SIGNATURE_COMPARATOR |
protected List<JMethod> |
JDeclaredType.methods
This type's methods.
|
Modifier and Type | Method and Description |
---|---|
JMethod |
JDeclaredType.findMethod(String methodSignature,
boolean recurse)
Returns the method with the given signature, if there is one.
Optionally can search up the super type chain. |
JMethod |
JTypeOracle.findMostSpecificOverride(JClassType type,
JMethod baseMethod) |
JMethod |
JDeclaredType.getClinitMethod()
Returns the class initializer method.
|
static JMethod |
JMethod.getExternalizedMethod(String fullClassName,
String signature,
boolean isStatic)
Creates an externalized representation for a method that needs to be resolved.
|
JMethod |
JProgram.getIndexedMethod(String string) |
JMethod |
JProgram.getIndexedMethodOrNull(String string) |
JMethod |
JClassType.getInitMethod() |
abstract JMethod |
JDeclaredType.getInitMethod()
Returns the instance initializer ($init) method.
|
JMethod |
JInterfaceType.getInitMethod() |
JMethod |
JTypeOracle.getInstanceMethodBySignature(JClassType type,
String signature) |
JMethod |
JAbstractMethodBody.getMethod() |
JMethod |
JProgram.getNullMethod() |
JMethod |
JProgram.getStaticImpl(JMethod method) |
JMethod |
JMethodCall.getTarget() |
JMethod |
JMethod.Specialization.getTargetMethod() |
JMethod |
JProgram.instanceMethodForStaticImpl(JMethod method)
If
method is a static impl method, returns the instance method
that method is the implementation of. |
Modifier and Type | Method and Description |
---|---|
List<JMethod> |
JProgram.getEntryMethods() |
Set<JMethod> |
JProgram.getIndexedMethods() |
List<JMethod> |
JDeclaredType.getMethods()
Returns this type's declared methods; does not include methods defined in a
super type unless they are overridden by this type.
|
Set<JMethod> |
JMethod.getOverriddenMethods()
Returns the transitive closure of all the methods this method overrides; this set is ordered
from most specific to least specific, where class methods appear before interface methods.
|
Set<JMethod> |
JMethod.getOverridingMethods()
Returns the transitive closure of all the methods that override this method; caveat this
list is only complete in monolithic compiles and should not be used in incremental compiles.
|
Modifier and Type | Method and Description |
---|---|
void |
JProgram.addEntryMethod(JMethod entryPoint) |
void |
JDeclaredType.addMethod(int index,
JMethod method)
Adds a method to this type.
|
void |
JDeclaredType.addMethod(JMethod newMethod) |
void |
JMethod.addOverriddenMethod(JMethod overriddenMethod)
Add a method that this method overrides.
|
void |
JMethod.addOverridingMethod(JMethod overridingMethod)
Add a method that overrides this method.
|
void |
JProgram.addPinnedMethod(JMethod method)
Add a pinned method.
|
void |
JVisitor.endVisit(JMethod x,
Context ctx) |
JMethod |
JTypeOracle.findMostSpecificOverride(JClassType type,
JMethod baseMethod) |
static String |
JProgram.getFullName(JMethod method) |
JMethod |
JProgram.getStaticImpl(JMethod method) |
JMethod |
JProgram.instanceMethodForStaticImpl(JMethod method)
If
method is a static impl method, returns the instance method
that method is the implementation of. |
static boolean |
JProgram.isClinit(JMethod method) |
static boolean |
JProgram.isInit(JMethod method) |
boolean |
JProgram.isStaticImpl(JMethod method) |
static boolean |
JTypeOracle.methodsDoMatch(JMethod method1,
JMethod method2)
Compare two methods based on name and original argument types
getOriginalParamTypes() . |
void |
JProgram.putStaticImpl(JMethod method,
JMethod staticImpl) |
void |
JProgram.removeStaticImplMapping(JMethod staticImpl) |
void |
JMethodCall.resolve(JMethod newMethod)
Resolve an external reference during AST stitching.
|
void |
JMethod.Specialization.resolve(List<JType> resolvedParams,
JType resolvedReturn,
JMethod targetMethod) |
void |
JAbstractMethodBody.setMethod(JMethod method) |
T |
JTransformer.transformMethod(JMethod x) |
boolean |
JVisitor.visit(JMethod x,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
void |
JDeclaredType.sortMethods(Comparator<? super JMethod> sort)
Sorts this type's methods according to the specified sort.
|
Constructor and Description |
---|
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
JExpression... args)
Create a method call.
|
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
List<JExpression> args)
Create a method call.
|
Modifier and Type | Method and Description |
---|---|
void |
JsniMethodRef.resolve(JMethod newMethod,
JClassType jsoType)
Resolve an external references during AST stitching.
|
Constructor and Description |
---|
JsniMethodRef(SourceInfo info,
String ident,
JMethod method,
JClassType jsoType) |
Modifier and Type | Field and Description |
---|---|
protected JMethod |
ImplicitUpcastAnalyzer.currentMethod |
Modifier and Type | Field and Description |
---|---|
static com.google.gwt.thirdparty.guava.common.base.Predicate<JMethod> |
JjsPredicates.IS_JS_CONSTRUCTOR |
protected Set<JMethod> |
MakeCallsStatic.toBeMadeStatic |
Modifier and Type | Method and Description |
---|---|
static JMethod |
JjsUtils.createForwardingMethod(JDeclaredType type,
JMethod methodToDelegateTo)
Creates a synthetic forwarding stub in
type with the same signature as
superTypeMethod that dispatchs to that method. |
static JMethod |
JjsUtils.createSyntheticAbstractStub(JDeclaredType type,
JMethod superTypeMethod)
Creates a synthetic abstract stub in
type with the same signature as
superTypeMethod . |
JMethod |
ReferenceMapper.get(org.eclipse.jdt.internal.compiler.lookup.MethodBinding binding) |
JMethod |
JChangeTrackingVisitor.getCurrentMethod() |
JMethod |
JavaToJavaScriptMapImpl.methodForStatement(JsStatement statement) |
JMethod |
JavaToJavaScriptMap.methodForStatement(JsStatement statement)
If
stat is used to set up the definion for some method implementation, then
return that method. |
JMethod |
JavaToJavaScriptMapImpl.nameToMethod(JsName name) |
JMethod |
JavaToJavaScriptMap.nameToMethod(JsName name)
If
name is the name of a function that corresponds to a Java
method, then return that method. |
Modifier and Type | Method and Description |
---|---|
List<JMethod> |
ComputeOverridesAndImplementDefaultMethods.exec(JProgram program)
Returns the methods created by this pass.
|
Set<JMethod> |
CallGraph.getAllCallees()
Return all the callee methods in the call graph.
|
Collection<JMethod> |
AutoboxUtils.getBoxMethods() |
Set<JMethod> |
OptimizerContext.getCallees(Collection<JMethod> callerMethods)
Return callee methods of
callerMethods . |
Set<JMethod> |
CallGraph.getCallees(Collection<JMethod> callerMethods)
Return all the callees of a set of caller methods.
|
Set<JMethod> |
FullOptimizerContext.getCallees(Collection<JMethod> callerMethods) |
Set<JMethod> |
OptimizerContext.getCallers(Collection<JMethod> calleeMethods)
Return caller methods of
calleeMethods . |
Set<JMethod> |
CallGraph.getCallers(Collection<JMethod> calleeMethods)
Return all the callers of a set of callee methods.
|
Set<JMethod> |
FullOptimizerContext.getCallers(Collection<JMethod> calleeMethods) |
Set<JMethod> |
OptimizerContext.getMethodsByReferencedFields(Collection<JField> fields)
Return methods that reference
fields . |
Set<JMethod> |
FullOptimizerContext.getMethodsByReferencedFields(Collection<JField> fields) |
Set<JMethod> |
OptimizerContext.getModifiedMethodsSince(int stepSince)
Return all the effective modified methods since a given step.
|
Set<JMethod> |
FullOptimizerContext.getModifiedMethodsSince(int stepSince) |
Set<JMethod> |
FieldReferencesGraph.getReferencingMethodsForFields(Collection<JField> fields)
Return the methods that reference
fields . |
Set<JMethod> |
OptimizerContext.getRemovedCalleeMethodsSince(int stepSince)
Get the removed callee methods since a given step.
|
Set<JMethod> |
FullOptimizerContext.getRemovedCalleeMethodsSince(int stepSince) |
Collection<JMethod> |
AutoboxUtils.getUnboxMethods() |
Set<JMethod> |
CallGraph.removeCalleeMethod(JMethod calleeMethod)
Remove a callee method and all its caller methods in both
calleeCallersPairs and callerCalleesPairs . |
Set<JMethod> |
CallGraph.removeCallerMethod(JMethod callerMethod)
Remove a caller method and all its callee methods in both
callerCalleesPairs and calleeCallersPairs . |
Modifier and Type | Method and Description |
---|---|
void |
CallGraph.addCallerMethod(JMethod callerMethod,
Collection<JMethod> calleeMethods)
Add a caller method and its callee methods to the call graph.
|
static void |
JavaAstVerifier.assertCorrectOverriddenOrder(JProgram program,
JMethod method) |
static void |
JavaAstVerifier.assertCorrectOverridingOrder(JProgram program,
JMethod method) |
static String |
JjsUtils.constructManglingSignature(JMethod x,
String partialSignature) |
static JMethod |
JjsUtils.createForwardingMethod(JDeclaredType type,
JMethod methodToDelegateTo)
Creates a synthetic forwarding stub in
type with the same signature as
superTypeMethod that dispatchs to that method. |
static JMethod |
JjsUtils.createSyntheticAbstractStub(JDeclaredType type,
JMethod superTypeMethod)
Creates a synthetic abstract stub in
type with the same signature as
superTypeMethod . |
void |
JChangeTrackingVisitor.endVisit(JMethod x,
Context ctx) |
void |
JavaAstVerifier.endVisit(JMethod x,
Context ctx) |
void |
TypeReferencesRecorder.endVisit(JMethod x,
Context ctx) |
void |
ImplicitUpcastAnalyzer.endVisit(JMethod x,
Context ctx) |
boolean |
JChangeTrackingVisitor.enter(JMethod x,
Context ctx) |
boolean |
TypeTightener.TightenTypesVisitor.enter(JMethod x,
Context ctx) |
static OptimizerStats |
DeadCodeElimination.exec(JProgram program,
JMethod method) |
void |
TypeRemapper.exit(JMethod x,
Context ctx) |
void |
JChangeTrackingVisitor.exit(JMethod x,
Context ctx) |
void |
TypeTightener.TightenTypesVisitor.exit(JMethod x,
Context ctx)
Tighten based on return types and overrides.
|
static boolean |
JjsUtils.isJsMemberUnnecessaryAccidentalOverride(JMethod method)
Returns true if the method is a synthetic accidental override that trivially dispatches to its
same name super.
|
void |
OptimizerContext.markModified(JMethod modifiedMethod)
Add modified method to both the modification and dependence information.
|
void |
FullOptimizerContext.markModified(JMethod modifiedMethod) |
void |
ControlFlowAnalyzer.DependencyRecorder.methodIsLiveBecause(JMethod liveMethod,
List<JMethod> dependencyChain)
Used to record the dependencies of a specific method.
|
JsName |
JavaToJavaScriptMapImpl.nameForMethod(JMethod method) |
JsName |
JavaToJavaScriptMap.nameForMethod(JMethod method)
Return the JavaScript name corresponding to a Java method.
|
protected void |
ToStringGenerationVisitor.printMethodHeader(JMethod x) |
protected void |
ToStringGenerationVisitor.printNativeFlag(JMethod x) |
protected void |
ToStringGenerationVisitor.printParameterList(JMethod x) |
void |
OptimizerContext.remove(JMethod method)
Remove method from both the dependence and modification information.
|
void |
FullOptimizerContext.remove(JMethod method) |
Set<JMethod> |
CallGraph.removeCalleeMethod(JMethod calleeMethod)
Remove a callee method and all its caller methods in both
calleeCallersPairs and callerCalleesPairs . |
Set<JMethod> |
CallGraph.removeCallerMethod(JMethod callerMethod)
Remove a caller method and all its callee methods in both
callerCalleesPairs and calleeCallersPairs . |
void |
FieldReferencesGraph.removeMethod(JMethod method)
For removing a method, remove the {referencedFields <-> methods} pairs that are related to the
method.
|
static void |
JjsUtils.replaceMethodBody(JMethod method,
JExpression returnValue) |
void |
ReferenceMapper.setMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding binding,
JMethod method) |
void |
ControlFlowAnalyzer.traverseFrom(JMethod method)
Assume
method is live, and find out what else might execute. |
void |
CallGraph.updateCallGraphOfMethod(JMethod method,
CallGraph deletedSubCallGraph,
CallGraph addedSubCallGraph)
Update call graph of a JMethod.
|
void |
FieldReferencesGraph.updateFieldReferencesOfMethod(JMethod method)
Update field references graph of a method.
|
boolean |
ToStringGenerationVisitor.visit(JMethod x,
Context ctx) |
boolean |
ControlFlowRecorder.visit(JMethod x,
Context ctx) |
boolean |
JChangeTrackingVisitor.visit(JMethod x,
Context ctx) |
boolean |
RemoveSpecializations.visit(JMethod x,
Context ctx) |
boolean |
JavaAstVerifier.visit(JMethod x,
Context ctx) |
boolean |
ImplicitUpcastAnalyzer.visit(JMethod x,
Context ctx) |
void |
JChangeTrackingVisitor.wasRemoved(JMethod method) |
Modifier and Type | Method and Description |
---|---|
void |
CallGraph.addCallerMethod(JMethod callerMethod,
Collection<JMethod> calleeMethods)
Add a caller method and its callee methods to the call graph.
|
Set<JMethod> |
OptimizerContext.getCallees(Collection<JMethod> callerMethods)
Return callee methods of
callerMethods . |
Set<JMethod> |
CallGraph.getCallees(Collection<JMethod> callerMethods)
Return all the callees of a set of caller methods.
|
Set<JMethod> |
FullOptimizerContext.getCallees(Collection<JMethod> callerMethods) |
Set<JMethod> |
OptimizerContext.getCallers(Collection<JMethod> calleeMethods)
Return caller methods of
calleeMethods . |
Set<JMethod> |
CallGraph.getCallers(Collection<JMethod> calleeMethods)
Return all the callers of a set of callee methods.
|
Set<JMethod> |
FullOptimizerContext.getCallers(Collection<JMethod> calleeMethods) |
Set<JField> |
OptimizerContext.getReferencedFieldsByMethods(Collection<JMethod> methods)
Return fields that are referenced by
methods . |
Set<JField> |
FullOptimizerContext.getReferencedFieldsByMethods(Collection<JMethod> methods) |
Set<JField> |
FieldReferencesGraph.getReferencedFieldsByMethods(Collection<JMethod> methods)
Return the referenced fields by
methods . |
void |
ControlFlowAnalyzer.DependencyRecorder.methodIsLiveBecause(JMethod liveMethod,
List<JMethod> dependencyChain)
Used to record the dependencies of a specific method.
|
void |
JChangeTrackingVisitor.methodsWereRemoved(Collection<JMethod> methods) |
void |
OptimizerContext.removeMethods(Collection<JMethod> methods)
Remove methods from the modification information.
|
void |
FullOptimizerContext.removeMethods(Collection<JMethod> methods) |
void |
OptimizerContext.syncDeletedSubCallGraphsSince(int step,
Collection<JMethod> prunedMethods)
Remove the pruned methods from the deleted sub call graphs since a given step.
|
void |
FullOptimizerContext.syncDeletedSubCallGraphsSince(int step,
Collection<JMethod> prunedMethods) |
Constructor and Description |
---|
JavaToJavaScriptMapImpl(List<JDeclaredType> types,
Map<HasName,JsName> names,
Map<JsStatement,JDeclaredType> typeForStatement,
Map<JsStatement,JMethod> methodForStatement) |
Modifier and Type | Method and Description |
---|---|
Set<JMethod> |
FragmentExtractor.findAllMethodsStillInJavaScript()
Find all Java methods that still exist in the resulting JavaScript, even
after JavaScript inlining and pruning.
|
Modifier and Type | Method and Description |
---|---|
boolean |
NothingAlivePredicate.isLive(JMethod method) |
boolean |
CfaLivenessPredicate.isLive(JMethod method) |
boolean |
LivenessPredicate.isLive(JMethod method)
Subclasses should return true if
method is deemed live and false otherwise. |
Modifier and Type | Method and Description |
---|---|
static JsFunction |
JsUtils.createBridge(JMethod method,
JsName polyName,
JsScope scope) |
static JsExpression |
JsUtils.createInvocationOrPropertyAccess(JsUtils.InvocationStyle invocationStyle,
SourceInfo sourceInfo,
JMethod method,
JsExpression instance,
JsNameRef reference,
List<JsExpression> args) |
Copyright © 2018. All rights reserved.