Class FactoryBypassInterpreter.SpecializedFactoryMethod
java.lang.Object
com.ibm.wala.classLoader.SyntheticMethod
com.ibm.wala.analysis.reflection.AbstractReflectionInterpreter.SpecializedMethod
com.ibm.wala.analysis.reflection.FactoryBypassInterpreter.SpecializedFactoryMethod
- All Implemented Interfaces:
IMember
,IMethod
,ContextItem
,IClassHierarchyDweller
- Enclosing class:
FactoryBypassInterpreter
protected class FactoryBypassInterpreter.SpecializedFactoryMethod
extends AbstractReflectionInterpreter.SpecializedMethod
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ibm.wala.ipa.callgraph.ContextItem
ContextItem.Value<T>
Nested classes/interfaces inherited from interface com.ibm.wala.classLoader.IMethod
IMethod.SourcePosition
-
Field Summary
Fields inherited from class com.ibm.wala.analysis.reflection.AbstractReflectionInterpreter.SpecializedMethod
allInstructions, allocations, typesAllocated
Fields inherited from class com.ibm.wala.classLoader.SyntheticMethod
declaringClass, NO_STATEMENTS, resolvedMethod
-
Constructor Summary
ModifierConstructorDescriptionprotected
SpecializedFactoryMethod
(SummarizedMethod m, Context context, Set<TypeReference> S) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
boolean
Two specialized methods can be different, even if they represent the same source method.Return the object that represents the declaring class for this member.int
Method getNumberOfParameters.getParameterType
(int i) By convention, for a non-static method, getParameterType(0) is the this pointerint
hashCode()
makeIR
(Context C, SSAOptions options) Most subclasses should override this.toString()
Methods inherited from class com.ibm.wala.analysis.reflection.AbstractReflectionInterpreter.SpecializedMethod
addCtorInvokeInstruction, addInstruction, addStatementsForConcreteSimpleType
Methods inherited from class com.ibm.wala.classLoader.SyntheticMethod
getAnnotations, getBytecodeStream, getClassHierarchy, getDeclaredExceptions, getDescriptor, getLineNumber, getLocalVariableName, getMaxLocals, getMaxStackHeight, getName, getParameterSourcePosition, getPoison, getPoisonLevel, getReference, getReturnType, getSelector, getSignature, getSourcePosition, getStatements, hasExceptionHandler, hasLocalVariableTable, hasPoison, isAbstract, isAnnotation, isBridge, isClinit, isEnum, isFactoryMethod, isFinal, isInit, isModule, isNative, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isSynthetic, isWalaSynthetic, makeControlFlowGraph
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.ibm.wala.classLoader.IMethod
getNumberOfDefaultParameters
-
Constructor Details
-
SpecializedFactoryMethod
-
-
Method Details
-
addStatementsForTypeAbstraction
-
getAllocationStatements
-
getInvokeStatements
-
equals
Two specialized methods can be different, even if they represent the same source method. So, revert to object identity for testing equality. TODO: this is non-optimal; could try to re-use specialized methods that have the same context.- Overrides:
equals
in classSyntheticMethod
- See Also:
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSyntheticMethod
-
toString
- Overrides:
toString
in classSyntheticMethod
-
getStatements
- Overrides:
getStatements
in classSyntheticMethod
-
getDeclaringClass
Description copied from interface:IMember
Return the object that represents the declaring class for this member.- Specified by:
getDeclaringClass
in interfaceIMember
- Overrides:
getDeclaringClass
in classSyntheticMethod
- Returns:
- the object that represents the declaring class for this member.
-
getNumberOfParameters
public int getNumberOfParameters()Description copied from interface:IMethod
Method getNumberOfParameters. This result includes the "this" pointer if applicable- Specified by:
getNumberOfParameters
in interfaceIMethod
- Overrides:
getNumberOfParameters
in classSyntheticMethod
-
getParameterType
Description copied from interface:IMethod
By convention, for a non-static method, getParameterType(0) is the this pointer- Specified by:
getParameterType
in interfaceIMethod
- Overrides:
getParameterType
in classSyntheticMethod
-
makeIR
Description copied from class:SyntheticMethod
Most subclasses should override this.- Overrides:
makeIR
in classSyntheticMethod
- Parameters:
C
- TODOoptions
- options governing IR conversion
-