Class MethodTooLargeException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class MethodTooLargeException
    extends java.lang.IndexOutOfBoundsException
    Exception thrown when the Code attribute of a method produced by a ClassWriter is too large.
    Author:
    Jason Zaugg
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClassName()  
      int getCodeSize()  
      java.lang.String getDescriptor()  
      java.lang.String getMethodName()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MethodTooLargeException

        public MethodTooLargeException​(java.lang.String className,
                                       java.lang.String methodName,
                                       java.lang.String descriptor,
                                       int codeSize)
        Constructs a new MethodTooLargeException.
        Parameters:
        className - the internal name of the owner class.
        methodName - the name of the method.
        descriptor - the descriptor of the method.
        codeSize - the size of the method's Code attribute, in bytes.
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Returns:
        the internal name of the owner class.
      • getMethodName

        public java.lang.String getMethodName()
        Returns:
        the name of the method.
      • getDescriptor

        public java.lang.String getDescriptor()
        Returns:
        the descriptor of the method.
      • getCodeSize

        public int getCodeSize()
        Returns:
        the size of the method's Code attribute, in bytes.