use of org.freud.analysed.classbytecode.method.instruction.ReferenceOperandInstruction in project freud by LMAX-Exchange.
the class AsmMethod method visitTypeInsn.
public void visitTypeInsn(final int opcodeUsed, final String type) {
final Opcode opcode = OPCODES_ARRAY[opcodeUsed];
final String operandType = "L" + type + ";";
final Instruction instruction = new ReferenceOperandInstruction(instructionList.size(), opcode, currentLineNumber, operandType);
updateCurrentState(instruction);
}
use of org.freud.analysed.classbytecode.method.instruction.ReferenceOperandInstruction in project freud by LMAX-Exchange.
the class AsmMethod method visitMultiANewArrayInsn.
public void visitMultiANewArrayInsn(final String desc, final int dims) {
final Instruction instruction = new ReferenceOperandInstruction(instructionList.size(), Opcode.MULTIANEWARRAY, currentLineNumber, desc, dims);
updateCurrentState(instruction);
}
use of org.freud.analysed.classbytecode.method.instruction.ReferenceOperandInstruction in project freud by LMAX-Exchange.
the class AsmMethod method visitIntInsn.
public void visitIntInsn(final int opcodeUsed, final int operand) {
final Opcode opcode = OPCODES_ARRAY[opcodeUsed];
final Instruction instruction;
if (opcode == Opcode.NEWARRAY) {
instruction = new ReferenceOperandInstruction(instructionList.size(), opcode, currentLineNumber, NEWARRAY_TYPES[operand]);
} else {
instruction = new IntOperandInstruction(instructionList.size(), opcode, currentLineNumber, operand);
}
updateCurrentState(instruction);
}
use of org.freud.analysed.classbytecode.method.instruction.ReferenceOperandInstruction in project freud by LMAX-Exchange.
the class AsmMethod method visitLdcInsn.
public void visitLdcInsn(final Object constant) {
final Instruction instruction;
if (constant instanceof Type) {
instruction = new ReferenceOperandInstruction(instructionList.size(), Opcode.LDC, currentLineNumber, constant.toString());
} else {
instruction = new ConstInstruction(instructionList.size(), Opcode.LDC, currentLineNumber, constant);
}
updateCurrentState(instruction);
}
Aggregations