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.maybeSetJsinteropMethodProperties(org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration x,
JMethod method) |
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 |
JDeclaredType.getClinitMethod()
Returns the class initializer method.
|
JMethod |
JParameter.getEnclosingMethod() |
JMethod |
HasEnclosingMethod.getEnclosingMethod() |
JMethod |
JLocal.getEnclosingMethod() |
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 |
JDeclaredType.getInitMethod()
Returns the instance initializer ($init) method.
|
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 |
JTypeOracle.getTopMostDefinition(JMethod method)
Returns the method definition where
method is first defined in a class. |
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 |
---|---|
Set<JMethod> |
JTypeOracle.getAllOverriddenMethods(JMethod method)
References to any methods which this method implementation might override
or implement in any instantiable class, including strange cases where there
is no direct relationship between the methods except in a subclass that
inherits one and implements the other.
|
List<JMethod> |
JProgram.getEntryMethods() |
Set<JMethod> |
JTypeOracle.getExportedMethods() |
Collection<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.
|
List<JMethod> |
JMethod.getOverriddenMethods()
Returns the transitive closure of all the methods this method overrides.
|
Modifier and Type | Method and Description |
---|---|
void |
JProgram.addEntryMethod(JMethod entryPoint) |
void |
JDeclaredType.addMethod(JMethod method)
Adds a method to this type.
|
void |
JMethod.addOverriddenMethod(JMethod toAdd)
Add a method that this method overrides.
|
void |
JProgram.addPinnedMethod(JMethod method)
Add a pinned method.
|
static JParameter |
JParameter.create(SourceInfo info,
String name,
JType type,
boolean isFinal,
boolean isThis,
JMethod enclosingMethod) |
static JParameter |
JProgram.createParameter(SourceInfo info,
String name,
JType type,
boolean isFinal,
boolean isThis,
JMethod enclosingMethod) |
void |
JVisitor.endVisit(JMethod x,
Context ctx) |
Set<JMethod> |
JTypeOracle.getAllOverriddenMethods(JMethod method)
References to any methods which this method implementation might override
or implement in any instantiable class, including strange cases where there
is no direct relationship between the methods except in a subclass that
inherits one and implements the other.
|
static String |
JProgram.getFullName(JMethod method) |
JMethod |
JProgram.getStaticImpl(JMethod method) |
String |
JMethod.Specialization.getTargetSignature(JMethod instanceMethod) |
JMethod |
JTypeOracle.getTopMostDefinition(JMethod method)
Returns the method definition where
method is first defined in a class. |
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) |
boolean |
JProgram.isDevitualizationAllowed(JMethod method)
Returns true if
MakeCallsStatic should try to statify method . |
boolean |
JTypeOracle.isExportedMethod(JMethod method) |
boolean |
JProgram.isInliningAllowed(JMethod method)
Returns true if the inliner should try to inline
method . |
boolean |
JTypeOracle.isJsTypeMethod(JMethod x) |
boolean |
JProgram.isStaticImpl(JMethod method) |
static boolean |
JTypeOracle.methodsDoMatch(JMethod method1,
JMethod method2)
Compare two methods based on name and original argument types
getOriginalParamTypes() . |
boolean |
JTypeOracle.needsJsInteropBridgeMethod(JMethod x)
A method needs a JsInterop bridge if any of the following are true:
1) the method name conflicts with a method name of a non-JsType/JsExport method in a superclass
2) the method returns or accepts Single-Abstract-Method types
3) the method returns or accepts JsAware/JsConvert types.
|
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) |
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) |
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
JType overrideReturnType,
JExpression... args)
Create a method call whose type is overridden to the specified type,
ignoring the return type of the target method.
|
JParameter(SourceInfo info,
String name,
JType type,
boolean isFinal,
boolean isThis,
JMethod enclosingMethod) |
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 |
---|---|
protected Map<JMethod,JMethod> |
Devirtualizer.devirtualMethodByMethod
Maps each Object instance methods (ie,
Object.equals(Object) ) onto
its corresponding devirtualizing method. |
protected Map<JMethod,JMethod> |
Devirtualizer.devirtualMethodByMethod
Maps each Object instance methods (ie,
Object.equals(Object) ) onto
its corresponding devirtualizing method. |
protected Set<JMethod> |
MakeCallsStatic.toBeMadeStatic |
Modifier and Type | Method and Description |
---|---|
JMethod |
ReferenceMapper.get(org.eclipse.jdt.internal.compiler.lookup.MethodBinding binding) |
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. |
JMethod |
JavaToJavaScriptMapImpl.vtableInitToMethod(JsStatement stat) |
JMethod |
JavaToJavaScriptMap.vtableInitToMethod(JsStatement stat)
If
stat is used to set up a vtable entry for a method, then
return that method. |
Modifier and Type | Method and Description |
---|---|
Collection<JMethod> |
AutoboxUtils.getBoxMethods() |
Collection<JMethod> |
AutoboxUtils.getUnboxMethods() |
Modifier and Type | Method and Description |
---|---|
void |
DeadCodeElimination.DeadCodeVisitor.endVisit(JMethod x,
Context ctx) |
void |
TypeRemapper.endVisit(JMethod x,
Context ctx) |
void |
TypeRefDepsChecker.endVisit(JMethod x,
Context ctx) |
void |
TypeReferencesRecorder.endVisit(JMethod x,
Context ctx) |
void |
TypeTightener.TightenTypesVisitor.endVisit(JMethod x,
Context ctx)
Tighten based on return types and overrides.
|
void |
ImplicitUpcastAnalyzer.endVisit(JMethod x,
Context ctx) |
static JStatement |
Simplifier.ifStatement(JIfStatement stmt,
JMethod currentMethod)
Simplifies an ifthenelse statement.
|
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.printParameterList(JMethod x) |
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. |
boolean |
ToStringGenerationVisitor.visit(JMethod x,
Context ctx) |
boolean |
DeadCodeElimination.DeadCodeVisitor.visit(JMethod x,
Context ctx) |
boolean |
RemoveSpecializations.visit(JMethod x,
Context ctx) |
boolean |
TypeTightener.TightenTypesVisitor.visit(JMethod x,
Context ctx) |
boolean |
ImplicitUpcastAnalyzer.visit(JMethod x,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
void |
ControlFlowAnalyzer.DependencyRecorder.methodIsLiveBecause(JMethod liveMethod,
List<JMethod> dependencyChain)
Used to record the dependencies of a specific method.
|
Constructor and Description |
---|
JavaToJavaScriptMapImpl(List<JDeclaredType> types,
Map<HasName,JsName> names,
Map<JsStatement,JClassType> typeForStatement,
Map<JsStatement,JMethod> vtableInitForMethod) |
Modifier and Type | Method and Description |
---|---|
static JMethod |
FragmentExtractor.methodFor(JsStatement stat,
JavaToJavaScriptMap map)
Return the Java method corresponding to
stat , or
null if there isn't one. |
Modifier and Type | Method and Description |
---|---|
Set<JMethod> |
FragmentExtractor.findAllMethodsInJavaScript()
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. |
Copyright © 2018. All rights reserved.