use of org.freud.analysed.classbytecode.method.instruction.ConstInstruction 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);
}
Also used :
ConstInstruction(org.freud.analysed.classbytecode.method.instruction.ConstInstruction)
Type(org.objectweb.asm.Type)
ReferenceOperandInstruction(org.freud.analysed.classbytecode.method.instruction.ReferenceOperandInstruction)
Instruction(org.freud.analysed.classbytecode.method.instruction.Instruction)
ReferenceOperandInstruction(org.freud.analysed.classbytecode.method.instruction.ReferenceOperandInstruction)
VarInstruction(org.freud.analysed.classbytecode.method.instruction.VarInstruction)
JumpInstruction(org.freud.analysed.classbytecode.method.instruction.JumpInstruction)
ConstInstruction(org.freud.analysed.classbytecode.method.instruction.ConstInstruction)
FieldInstruction(org.freud.analysed.classbytecode.method.instruction.FieldInstruction)
IntOperandInstruction(org.freud.analysed.classbytecode.method.instruction.IntOperandInstruction)
MethodInvocationInstruction(org.freud.analysed.classbytecode.method.instruction.MethodInvocationInstruction)