public class MethodSummary extends Object
Modifier and Type | Field and Description |
---|---|
protected static SSAInstruction[] |
NO_STATEMENTS |
Constructor and Description |
---|
MethodSummary(MethodReference method) |
Modifier and Type | Method and Description |
---|---|
void |
addConstant(Integer vn,
ConstantValue value) |
void |
addPoison(String reason) |
void |
addStatement(SSAInstruction statement) |
Map<Integer,ConstantValue> |
getConstants() |
MemberReference |
getMethod()
Returns the method.
|
int |
getNextProgramCounter() |
int |
getNumberOfParameters() |
int |
getNumberOfStatements() |
TypeReference |
getParameterType(int i)
Note that by convention, getParameterType(0) == this for non-static methods.
|
String |
getPoison() |
byte |
getPoisonLevel() |
TypeReference |
getReturnType() |
SSAInstruction[] |
getStatements() |
boolean |
hasPoison() |
boolean |
isFactory() |
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) |
String |
toString() |
protected static final SSAInstruction[] NO_STATEMENTS
public MethodSummary(MethodReference method)
public int getNumberOfStatements()
public void addStatement(SSAInstruction statement)
public void addConstant(Integer vn, ConstantValue value)
public MemberReference getMethod()
public boolean isNative()
public void addPoison(String reason)
reason
- public boolean hasPoison()
public String getPoison()
public void setPoisonLevel(byte b)
public byte getPoisonLevel()
public SSAInstruction[] getStatements()
public Map<Integer,ConstantValue> getConstants()
public int getNumberOfParameters()
public boolean isStatic()
public void setStatic(boolean b)
public TypeReference getReturnType()
public TypeReference getParameterType(int i)
public int getNextProgramCounter()
public void setFactory(boolean b)
b
- public boolean isFactory()