|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.h3xstream.findsecbugs.common.ByteCode
public class ByteCode
| Constructor Summary | |
|---|---|
ByteCode()
|
|
| Method Summary | ||
|---|---|---|
static
|
getConstantLDC(org.apache.bcel.generic.InstructionHandle h,
org.apache.bcel.generic.ConstantPoolGen cpg,
Class<T> clazz)
Get the constant value of the given instruction. |
|
static
|
getPrevInstruction(org.apache.bcel.generic.InstructionHandle startHandle,
Class<T> clazz)
Get the previous instruction matching the given type of instruction (second parameter) |
|
static Number |
getPushNumber(org.apache.bcel.generic.InstructionHandle h)
Extract the number from a push operation (BIPUSH/SIPUSH). |
|
static void |
printOpCode(org.apache.bcel.generic.Instruction ins,
org.apache.bcel.generic.ConstantPoolGen cpg)
Print the the detail of the given instruction (class, method, etc.) |
|
static void |
printOpCode(org.apache.bcel.generic.InstructionHandle insHandle,
org.apache.bcel.generic.ConstantPoolGen cpg)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteCode()
| Method Detail |
|---|
public static void printOpCode(org.apache.bcel.generic.InstructionHandle insHandle,
org.apache.bcel.generic.ConstantPoolGen cpg)
public static void printOpCode(org.apache.bcel.generic.Instruction ins,
org.apache.bcel.generic.ConstantPoolGen cpg)
ins - Instructioncpg - Constant Pool
public static <T> T getConstantLDC(org.apache.bcel.generic.InstructionHandle h,
org.apache.bcel.generic.ConstantPoolGen cpg,
Class<T> clazz)
h - Instruction Handlecpg - Constant Poolclazz - Type of the constant being read
public static Number getPushNumber(org.apache.bcel.generic.InstructionHandle h)
h - Instruction Handle
public static <T> T getPrevInstruction(org.apache.bcel.generic.InstructionHandle startHandle,
Class<T> clazz)
startHandle - clazz - Type of instruction to look for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||