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 ContextItem
ContextItem.Value<T>Nested classes/interfaces inherited from interface IMethod
IMethod.SourcePosition -
Field Summary
Fields inherited from class AbstractReflectionInterpreter.SpecializedMethod
allInstructions, allocations, typesAllocatedFields inherited from class SyntheticMethod
declaringClass, NO_STATEMENTS, resolvedMethod -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpecializedFactoryMethod(SummarizedMethod m, Context context, Set<TypeReference> S) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanTwo specialized methods can be different, even if they represent the same source method.Return the object that represents the declaring class for this member.intMethod getNumberOfParameters.getParameterType(int i) By convention, for a non-static method, getParameterType(0) is the this pointerinthashCode()makeIR(Context C, SSAOptions options) Most subclasses should override this.Methods inherited from class AbstractReflectionInterpreter.SpecializedMethod
addCtorInvokeInstruction, addInstruction, addStatementsForConcreteSimpleTypeMethods inherited from class 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, toStringMethods inherited from interface 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:
equalsin classSyntheticMethod- See Also:
-
hashCode
public int hashCode()- Overrides:
hashCodein classSyntheticMethod
-
getStatements
- Overrides:
getStatementsin classSyntheticMethod
-
getDeclaringClass
Description copied from interface:IMemberReturn the object that represents the declaring class for this member.- Specified by:
getDeclaringClassin interfaceIMember- Overrides:
getDeclaringClassin classSyntheticMethod- Returns:
- the object that represents the declaring class for this member.
-
getNumberOfParameters
public int getNumberOfParameters()Description copied from interface:IMethodMethod getNumberOfParameters. This result includes the "this" pointer if applicable- Specified by:
getNumberOfParametersin interfaceIMethod- Overrides:
getNumberOfParametersin classSyntheticMethod
-
getParameterType
Description copied from interface:IMethodBy convention, for a non-static method, getParameterType(0) is the this pointer- Specified by:
getParameterTypein interfaceIMethod- Overrides:
getParameterTypein classSyntheticMethod
-
makeIR
Description copied from class:SyntheticMethodMost subclasses should override this.- Overrides:
makeIRin classSyntheticMethod- Parameters:
C- TODOoptions- options governing IR conversion
-