Package org.objectweb.asm
Class MethodTooLargeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IndexOutOfBoundsException
-
- org.objectweb.asm.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 aClassWriter
is too large.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
className
private int
codeSize
private java.lang.String
descriptor
private java.lang.String
methodName
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MethodTooLargeException(java.lang.String className, java.lang.String methodName, java.lang.String descriptor, int codeSize)
Constructs a newMethodTooLargeException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClassName()
Returns the internal name of the owner class.int
getCodeSize()
Returns the size of the method's Code attribute, in bytes.java.lang.String
getDescriptor()
Returns the descriptor of the method.java.lang.String
getMethodName()
Returns the name of the method.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
className
private final java.lang.String className
-
methodName
private final java.lang.String methodName
-
descriptor
private final java.lang.String descriptor
-
codeSize
private final int codeSize
-
-
Constructor Detail
-
MethodTooLargeException
public MethodTooLargeException(java.lang.String className, java.lang.String methodName, java.lang.String descriptor, int codeSize)
Constructs a newMethodTooLargeException
.- Parameters:
className
- the internal name of the owner class (seeType.getInternalName()
).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.- Returns:
- the internal name of the owner class (see
Type.getInternalName()
).
-
getMethodName
public java.lang.String getMethodName()
Returns the name of the method.- Returns:
- the name of the method.
-
getDescriptor
public java.lang.String getDescriptor()
Returns the descriptor of the method.- Returns:
- the descriptor of the method.
-
getCodeSize
public int getCodeSize()
Returns the size of the method's Code attribute, in bytes.- Returns:
- the size of the method's Code attribute, in bytes.
-
-