Class MethodSummary
java.lang.Object
com.ibm.wala.ipa.summaries.MethodSummary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMethodSummary
(MethodReference method) MethodSummary
(MethodReference method, int numberOfParameters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConstant
(Integer vn, ConstantValue value) void
void
addStatement
(SSAInstruction statement) Returns the method.int
int
getParameterType
(int i) Note that by convention, getParameterType(0) == this for non-static methods.byte
boolean
boolean
boolean
isNative()
boolean
isStatic()
void
setFactory
(boolean b) Record if this is a "factory" method; meaning it returns some object which we know little about ...void
setPoisonLevel
(byte b) void
setStatic
(boolean b) void
setValueNames
(Map<Integer, Atom> nameTable) toString()
-
Field Details
-
NO_STATEMENTS
-
-
Constructor Details
-
MethodSummary
-
MethodSummary
-
-
Method Details
-
setValueNames
-
getValueNames
-
getValue
-
getNumberOfStatements
public int getNumberOfStatements() -
addStatement
-
addConstant
-
getMethod
-
isNative
public boolean isNative() -
addPoison
-
hasPoison
public boolean hasPoison() -
getPoison
-
setPoisonLevel
public void setPoisonLevel(byte b) -
getPoisonLevel
public byte getPoisonLevel() -
getStatements
-
getConstants
-
getNumberOfParameters
public int getNumberOfParameters()- Returns:
- the number of parameters, including the implicit 'this'
-
isStatic
public boolean isStatic() -
setStatic
public void setStatic(boolean b) -
getReturnType
-
toString
-
getParameterType
Note that by convention, getParameterType(0) == this for non-static methods. -
setFactory
public void setFactory(boolean b) Record if this is a "factory" method; meaning it returns some object which we know little about ... usually we'll resolve this based on downstream uses of the object -
isFactory
public boolean isFactory()
-