getLineNumber(int pos) Returns the line number of the source line corresponding to the specified
bytecode contained in this method.
Parameters: pos - the position of the bytecode (>= 0).
Constructs a method_info structure. The initial value of
access_flags is zero.
Parameters: cp - a constant pool table Parameters: methodname - method name Parameters: desc - method descriptor See Also:Descriptor
Constructs a copy of method_info structure. Class names
appearing in the source method_info are renamed according
to classnameMap.
Note: only Code and Exceptions attributes
are copied from the source. The other attributes are ignored.
Parameters: cp - a constant pool table Parameters: methodname - a method name Parameters: src - a source method_info Parameters: classnameMap - specifies pairs of replaced and substituted name. See Also:Descriptor
Copies all constant pool items to a given new constant pool
and replaces the original items with the new ones.
This is used for garbage collecting the items of removed fields
and methods.
Parameters: cp - the destination
Returns the attribute with the specified name. If it is not found, this
method returns null.
Parameters: name - attribute name an AttributeInfo object or null. See Also:MethodInfo.getAttributes()
Returns all the attributes. The returned List object
is shared with this object. If you add a new attribute to the list,
the attribute is also added to the method represented by this
object. If you remove an attribute from the list, it is also removed
from the method.
a list of AttributeInfo objects. See Also:AttributeInfo
Returns the line number of the source line corresponding to the specified
bytecode contained in this method.
Parameters: pos - the position of the bytecode (>= 0). an index into the codearray. -1 if this information is not available.
Changes a super constructor called by this constructor.
This method modifies a call to super(), which should be
at the head of a constructor body, so that a constructor in a different
super class is called. This method does not change actural parameters.
Hence the new super class must have a constructor with the same signature
as the original one.
This method should be called when the super class of the class declaring
this method is changed.
This method does not perform anything unless this MethodInfo
represents a constructor.
Parameters: superclass - the new super class