Modifier and Type | Method and Description |
---|---|
StandardMethodMember |
MemberFactory.get(JMethod method) |
void |
DependencyRecorder.methodIsLiveBecause(JMethod liveMethod,
ArrayList<JMethod> dependencyChain)
Used to record the dependencies of a specific method.
|
Modifier and Type | Method and Description |
---|---|
void |
DependencyRecorder.methodIsLiveBecause(JMethod liveMethod,
ArrayList<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 |
---|---|
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 |
---|---|
protected List<JMethod> |
JDeclaredType.methods
This type's methods.
|
Modifier and Type | Method and Description |
---|---|
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 |
JDeclaredType.getInitMethod()
Returns the instance initializer ($init) method.
|
JMethod |
JAbstractMethodBody.getMethod() |
JMethod |
JProgram.getNullMethod() |
JMethod |
JTypeOracle.getPolyMethod(JClassType type,
String signature) |
JMethod |
JProgram.getStaticImpl(JMethod method) |
JMethod |
JMethodCall.getTarget() |
JMethod |
JProgram.staticImplFor(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.getAllOverrides(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() |
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.getOverrides()
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.addOverride(JMethod toAdd)
Add a method that this method overrides.
|
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.getAllOverrides(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) |
static String |
JProgram.getJsniSig(JMethod method) |
static String |
JProgram.getJsniSig(JMethod method,
boolean addReturnType) |
JMethod |
JProgram.getStaticImpl(JMethod method) |
static boolean |
JProgram.isClinit(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 |
JAbstractMethodBody.setMethod(JMethod method) |
JMethod |
JProgram.staticImplFor(JMethod method)
If
method is a static impl method, returns the instance method
that method is the implementation of. |
boolean |
JVisitor.visit(JMethod x,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
void |
JMethod.addOverrides(List<JMethod> toAdd)
Add methods that this method overrides.
|
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) |
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
JType overrideReturnType)
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> |
JsoDevirtualizer.polyMethodToJsoMethod
Maps each Object instance methods (ie,
Object.equals(Object) ) onto
its corresponding devirtualizing method. |
protected Map<JMethod,JMethod> |
JsoDevirtualizer.polyMethodToJsoMethod
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 |
JavaToJavaScriptMap.nameToMethod(JsName name)
If
name is the name of a function that corresponds to a Java
method, then return that method. |
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 |
TypeTightener.RecordVisitor.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,
ArrayList<JMethod> dependencyChain)
Used to record the dependencies of a specific 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 |
TypeTightener.RecordVisitor.visit(JMethod x,
Context ctx)
Merge param call args across overriders/implementors.
|
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,
ArrayList<JMethod> dependencyChain)
Used to record the dependencies of a specific method.
|
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.