类 MethodTooLargeException

所有已实现的接口:
Serializable

public final class MethodTooLargeException extends IndexOutOfBoundsException
Exception thrown when the Code attribute of a method produced by a ClassWriter is too large.
另请参阅:
  • 构造器详细资料

    • MethodTooLargeException

      public MethodTooLargeException(String className, String methodName, String descriptor, int codeSize)
      Constructs a new MethodTooLargeException.
      参数:
      className - the internal name of the owner class (see Type.getInternalName()).
      methodName - the name of the method.
      descriptor - the descriptor of the method.
      codeSize - the size of the method's Code attribute, in bytes.
  • 方法详细资料

    • getClassName

      public String getClassName()
      Returns the internal name of the owner class.
      返回:
      the internal name of the owner class (see Type.getInternalName()).
    • getMethodName

      public String getMethodName()
      Returns the name of the method.
      返回:
      the name of the method.
    • getDescriptor

      public String getDescriptor()
      Returns the descriptor of the method.
      返回:
      the descriptor of the method.
    • getCodeSize

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