Package net.sf.rej.java.attribute

Examples of net.sf.rej.java.attribute.ExceptionsAttribute


          }
          exceptionList.add(new ExceptionDescriptor(cp, exIndex));
        }

        Attributes attrs = method.getAttributes();
        ExceptionsAttribute ea = new ExceptionsAttribute(exAttrNameIndex, this.cp, exceptionList);
        if (this.oldExAttr != null) {
          attrs.removeAttribute(this.oldExAttr);
        }
        attrs.addAttribute(ea);
    }
View Full Code Here


        method.setNameIndex(nameIndex);
        method.setDescriptorIndex(descIndex);
        Attributes attributes = new Attributes();
        CodeAttribute ca = new CodeAttribute(codeAttrNameIndex, cp, maxStackSize, maxLocals);
        attributes.addAttribute(ca);
        ExceptionsAttribute ea = new ExceptionsAttribute(exAttrNameIndex, cp, exceptions);
        attributes.addAttribute(ea);
        method.setAttributes(attributes);
        return method;
    }
View Full Code Here

    public void setAccessFlags(AccessFlags accessFlags) {
        this.accessFlags = accessFlags.getValue();
    }

    public List<ExceptionDescriptor> getExceptions() {
        ExceptionsAttribute ea = this.attributes.getExceptionsAttribute();
        if (ea == null) {
            return new ArrayList<ExceptionDescriptor>();
        } else {
            return ea.getExceptions();
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.rej.java.attribute.ExceptionsAttribute

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.