Package javassist.bytecode

Examples of javassist.bytecode.BadBytecode


        public String getName() {
            return name;
        }

        protected void setType(String s, ClassPool cp) throws BadBytecode {
            throw new BadBytecode("conflict: " + name + " and " + s);
        }
View Full Code Here


                }
                else
                    return false;
            }
            catch (NotFoundException e) {
                throw new BadBytecode("cannot find " + e.getMessage());
            }
        }
View Full Code Here

                    return name.substring(2, name.length() - 1).replace('/', '.');                   
                else if (c == '[')
                    return name.substring(1);
            }
   
            throw new BadBytecode("bad array type for AALOAD: "
                                  + name);
        }
View Full Code Here

    protected void visitRET(int pos, byte[] code) throws BadBytecode {
        throwBadBytecode(pos, "ret");
    }

    private void throwBadBytecode(int pos, String name) throws BadBytecode {
        throw new BadBytecode(name + " at " + pos);
    }
View Full Code Here

            break;
        case Opcode.AALOAD : {
            int s = --stackTop - 1;
            TypeData data = stackTypes[s];
            if (data == null || !data.isObjectType())
                throw new BadBytecode("bad AALOAD");
            else
                stackTypes[s] = new TypeData.ArrayElement(data);

            break; }
        case Opcode.BALOAD :
View Full Code Here

            return "(Ljava/lang/Object;I)S";
        case LALOAD:
            return "(Ljava/lang/Object;I)J";
        }

        throw new BadBytecode(opcode);
    }
View Full Code Here

            return "(Ljava/lang/Object;IS)V";
        case LASTORE:
            return "(Ljava/lang/Object;IJ)V";
        }

        throw new BadBytecode(opcode);
    }
View Full Code Here

    protected void visitRET(int pos, byte[] code) throws BadBytecode {
        throwBadBytecode(pos, "ret");
    }

    private void throwBadBytecode(int pos, String name) throws BadBytecode {
        throw new BadBytecode(name + " at " + pos);
    }
View Full Code Here

            stackTypes[s] = OBJECT;
            Object data = stackData[s];
            if (data != null && data instanceof String)
                stackData[s] = getDerefType((String)data);
            else
                throw new BadBytecode("bad AALOAD");

            break; }
        case Opcode.BALOAD :
        case Opcode.CALOAD :
        case Opcode.SALOAD :
View Full Code Here

                else
                    return type2;
            }
        }

        throw new BadBytecode("bad array type for AALOAD: " + type);
    }
View Full Code Here

TOP

Related Classes of javassist.bytecode.BadBytecode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.