public class InstructionTypeCounter extends Object implements MethodData.Results
Modifier and Type | Method and Description |
---|---|
static int |
getArrayLengthCount(MethodData info) |
static int |
getArrayLoadCount(MethodData info) |
static int |
getArrayStoreCount(MethodData info) |
static int |
getBinaryOpCount(MethodData info) |
static int |
getCheckCastCount(MethodData info) |
static int |
getComparisonCount(MethodData info) |
static int |
getConditionalBranchCount(MethodData info) |
static int |
getConstantCount(MethodData info) |
static int |
getConversionCount(MethodData info) |
static int |
getDupCount(MethodData info) |
static int |
getGetCount(MethodData info) |
static int |
getGotoCount(MethodData info) |
static int |
getInstanceOfCount(MethodData info) |
static int |
getInvokeCount(MethodData info) |
static int |
getLocalLoadCount(MethodData info) |
static int |
getLocalStoreCount(MethodData info) |
static int |
getMonitorCount(MethodData info) |
static int |
getNewCount(MethodData info) |
static int |
getPopCount(MethodData info) |
static int |
getPutCount(MethodData info) |
static int |
getReturnCount(MethodData info) |
static int |
getShiftCount(MethodData info) |
static int |
getSwapCount(MethodData info) |
static int |
getSwitchesCount(MethodData info) |
static int |
getThrowCount(MethodData info) |
static int |
getUnaryOpCount(MethodData info) |
boolean |
notifyUpdate(MethodData info,
IInstruction[] newInstructions,
ExceptionHandler[][] newHandlers,
int[] newInstructionMap)
Whenever the underlying method is updated, we'll throw away our counts so they can be reconstructed from scratch next time.
|
public boolean notifyUpdate(MethodData info, IInstruction[] newInstructions, ExceptionHandler[][] newHandlers, int[] newInstructionMap)
notifyUpdate
in interface MethodData.Results
info
- the method data this annotation is attached tonewInstructions
- the instructions the method will change tonewHandlers
- the handler lists the method will change tonewInstructionMap
- the instructions-to-bytecodes map the method will change topublic static int getArrayLoadCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getArrayStoreCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getGetCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getPutCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getMonitorCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getInvokeCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getComparisonCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getArrayLengthCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getConstantCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getShiftCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getSwitchesCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getSwapCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getBinaryOpCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getCheckCastCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getThrowCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getConditionalBranchCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getConversionCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getDupCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getGotoCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getReturnCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getInstanceOfCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getLocalLoadCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getLocalStoreCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getNewCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getPopCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException
public static int getUnaryOpCount(MethodData info) throws IllegalArgumentException
IllegalArgumentException