@Override public AbstractInsnNode clone(final Map<LabelNode, LabelNode> labels) { return new LdcInsnNode(cst).cloneAnnotations(this); } }
@Override public void visitLdcInsn(final Object cst) { instructions.add(new LdcInsnNode(cst)); }
public static AbstractInsnNode getClassLdc(Class<?> clazz) { if (clazz.isPrimitive()) { return new FieldInsnNode( Opcodes.GETSTATIC, org.babyfish.org.objectweb.asm.Type.getInternalName(ClassInfo.box(clazz)), "TYPE", "Ljava/lang/Class;"); } return new LdcInsnNode(org.babyfish.org.objectweb.asm.Type.getType(clazz)); }
"Ljava/lang/Class;"); return new LdcInsnNode(org.babyfish.org.objectweb.asm.Type.getType(descriptor));
return (N)new LdcInsnNode(old.cst);
} else if (typeInsnNode.getOpcode() == Opcodes.ANEWARRAY) { InsnList tmpInstructions = new InsnList(); tmpInstructions.add(new LdcInsnNode(typeInsnNode.desc)); tmpInstructions.add(new MethodInsnNode( Opcodes.INVOKESTATIC,
tmpInstructions.add(new LdcInsnNode(Type.getType(fieldEntry.declaringClassEntry.clazz))); } else { tmpInstructions.add(new LdcInsnNode(fieldEntry.declaringClassEntry.clazz.getName())); tmpInstructions.add( new MethodInsnNode( tmpInstructions.add(new LdcInsnNode(fieldEntry.getName())); tmpInstructions.add(new MethodInsnNode( Opcodes.INVOKEVIRTUAL, false)); tmpInstructions.add(new InsnNode(Opcodes.DUP)); tmpInstructions.add(new LdcInsnNode(true)); tmpInstructions.add(new MethodInsnNode( Opcodes.INVOKEVIRTUAL, tmpInstructions.add(new TypeInsnNode(Opcodes.NEW, Type.getInternalName(AssertionError.class))); tmpInstructions.add(new InsnNode(Opcodes.DUP)); tmpInstructions.add(new LdcInsnNode("Internal bug: 1")); tmpInstructions.add( new MethodInsnNode( tmpInstructions.add(new TypeInsnNode(Opcodes.NEW, Type.getInternalName(AssertionError.class))); tmpInstructions.add(new InsnNode(Opcodes.DUP)); tmpInstructions.add(new LdcInsnNode("Internal bug: 2")); tmpInstructions.add( new MethodInsnNode( tmpInstructions.add(new LdcInsnNode(Type.getType(methodEntry.declaringClassEntry.clazz)));
"queryType", "I")); afterInstructions.add(new LdcInsnNode(HqlTokenTypes.QUERY)); afterInstructions.add(new JumpInsnNode(Opcodes.IF_ICMPNE, isNotQueryLabelNode));
instructions.add(new LdcInsnNode(parameterTypes.length)); instructions.add(new TypeInsnNode(Opcodes.ANEWARRAY, "java/lang/Object")); if (parameterTypes.length != 0) { for (int i = 0; i < parameterTypes.length; i++) { instructions.add(new InsnNode(Opcodes.DUP)); instructions.add(new LdcInsnNode(i)); Type parameterType = parameterTypes[i]; TypeCategory typeCategory = TypeCategory.of(parameterType); instructions.add(new TypeInsnNode(Opcodes.NEW, Type.getInternalName(AssertionError.class))); instructions.add(new InsnNode(Opcodes.DUP)); instructions.add(new LdcInsnNode("Internal bug: 7")); instructions.add(new MethodInsnNode( Opcodes.INVOKESPECIAL,
instructions.add(new TypeInsnNode(Opcodes.NEW, Type.getInternalName(AssertionError.class))); instructions.add(new InsnNode(Opcodes.DUP)); instructions.add(new LdcInsnNode("Internal bug: 5")); instructions.add(new MethodInsnNode( Opcodes.INVOKESPECIAL,
instructions.add(new TypeInsnNode(Opcodes.NEW, Type.getInternalName(AssertionError.class))); instructions.add(new InsnNode(Opcodes.DUP)); instructions.add(new LdcInsnNode("Internal bug: 6")); instructions.add(new MethodInsnNode( Opcodes.INVOKESPECIAL,
instructions.add(new LdcInsnNode(true)); instructions.add( new MethodInsnNode(