Top Description Fields Constructors Methods
jdk.internal.org.objectweb.asm

public final Class MethodTooLargeException

extends IndexOutOfBoundsException
Class Inheritance

Exception thrown when the Code attribute of a method produced by a ClassWriter is too large.
Author
Jason Zaugg

Field Summary

Modifier and TypeField and Description
private final String
private final int
private final String
private final String
private static final long

Constructor Summary

AccessConstructor and Description
public
MethodTooLargeException(final String
the internal name of the owner class (see Type#getInternalName()).
className
,
final String
the name of the method.
methodName
,
final String
the descriptor of the method.
descriptor
,
final int
the size of the method's Code attribute, in bytes.
codeSize
)

Constructs a new MethodTooLargeException.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the internal name of the owner class (see Type#getInternalName()).
getClassName
()

Returns the internal name of the owner class.

public int

Returns:

the size of the method's Code attribute, in bytes.
getCodeSize
()

Returns the size of the method's Code attribute, in bytes.

public String

Returns:

the descriptor of the method.
getDescriptor
()

Returns the descriptor of the method.

public String

Returns:

the name of the method.
getMethodName
()

Returns the name of the method.

Field Detail

classNameback to summary
private final String className
codeSizeback to summary
private final int codeSize
descriptorback to summary
private final String descriptor
methodNameback to summary
private final String methodName
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IndexOutOfBoundsException.serialVersionUID.

Constructor Detail

MethodTooLargeExceptionback to summary
public MethodTooLargeException(final String className, final String methodName, final String descriptor, final int codeSize)

Constructs a new MethodTooLargeException.

Parameters
className:String

the internal name of the owner class (see Type#getInternalName()).

methodName:String

the name of the method.

descriptor:String

the descriptor of the method.

codeSize:int

the size of the method's Code attribute, in bytes.

Method Detail

getClassNameback to summary
public String getClassName()

Returns the internal name of the owner class.

Returns:String

the internal name of the owner class (see Type#getInternalName()).

getCodeSizeback to summary
public int getCodeSize()

Returns the size of the method's Code attribute, in bytes.

Returns:int

the size of the method's Code attribute, in bytes.

getDescriptorback to summary
public String getDescriptor()

Returns the descriptor of the method.

Returns:String

the descriptor of the method.

getMethodNameback to summary
public String getMethodName()

Returns the name of the method.

Returns:String

the name of the method.