| Modifier and Type | Field and Description |
|---|---|
| private static BCELComparator | |
| public static final Method[] | EMPTY_ARRAY
Empty array constant. |
| private ParameterAnnotationEntry[] | parameterAnnotationEntries
Annotations defined on the parameters of a method. |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | Method(final DataInput
Input stream file, final ConstantPool constantPool)Constructs object from file stream. |
| public | Method(final int
Access rights of method accessFlags, final int Points to field name in constant pool nameIndex, final int Points to encoded signature signatureIndex, final Attribute[] Collection of attributes attributes, final ConstantPool Array of constants constantPool)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(final Visitor
Visitor object v)Implements com. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. |
| public Method | |
| public boolean | equals(final Object obj)
Overrides java. Return value as defined by given BCELComparator strategy. |
| public Type[] | |
| public Code | |
| public static BCELComparator | |
| public ExceptionTable | getExceptionTable()
Returns: ExceptionTable attribute of method, if any, i.e., list all exceptions the method may throw not exception handlers! |
| public LineNumberTable | getLineNumberTable()
Returns: LineNumberTable of code attribute if any, i.e. the call is forwarded to the Code atribute. |
| public LocalVariableTable | getLocalVariableTable()
Returns: LocalVariableTable of code attribute if any, i.e. the call is forwarded to the Code attribute. |
| public LocalVariableTypeTable | Returns: LocalVariableTypeTable of code attribute if any, i.e. the call is forwarded to the Code attribute.Gets the local variable type table attribute |
| public ParameterAnnotationEntry[] | |
| public Type | |
| public int | hashCode()
Overrides java. Return value as defined by given BCELComparator strategy. |
| public static void | |
| public String | Returns: String representation of the method.Overrides java. Return string representation close to declaration format, 'public static void main(String[] args) throws IOException', e.g. |
| bcelComparator | back to summary |
|---|---|
| private static BCELComparator<Method> bcelComparator | |
| EMPTY_ARRAY | back to summary |
|---|---|
| public static final Method[] EMPTY_ARRAY Empty array constant.
| |
| parameterAnnotationEntries | back to summary |
|---|---|
| private ParameterAnnotationEntry[] parameterAnnotationEntries Annotations defined on the parameters of a method. | |
| Method | back to summary |
|---|---|
| public Method() Empty constructor, all attributes have to be defined via 'setXXX' methods. Use at your own risk. | |
| Method | back to summary |
|---|---|
| pack-priv Method(final DataInput file, final ConstantPool constantPool) throws IOException, ClassFormatException Constructs object from file stream.
| |
| Method | back to summary |
|---|---|
public Method(final int accessFlags, final int nameIndex, final int signatureIndex, final Attribute[] attributes, final ConstantPool constantPool)
| |
| Method | back to summary |
|---|---|
| public Method(final Method c) Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.
| |
| accept | back to summary |
|---|---|
| public void accept(final Visitor v) Implements com. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. | |
| copy | back to summary |
|---|---|
public Method copy(final ConstantPool constantPool)
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Return value as defined by given BCELComparator strategy. By default two method objects are said to be equal when their names and signatures are equal.
| |
| getArgumentTypes | back to summary |
|---|---|
public Type[] getArgumentTypes()
| |
| getCode | back to summary |
|---|---|
public Code getCode()
| |
| getComparator | back to summary |
|---|---|
public static BCELComparator
| |
| getExceptionTable | back to summary |
|---|---|
public ExceptionTable getExceptionTable()
| |
| getLineNumberTable | back to summary |
|---|---|
public LineNumberTable getLineNumberTable()
| |
| getLocalVariableTable | back to summary |
|---|---|
public LocalVariableTable getLocalVariableTable()
| |
| getLocalVariableTypeTable | back to summary |
|---|---|
| public LocalVariableTypeTable getLocalVariableTypeTable() Gets the local variable type table attribute
| |
| getParameterAnnotationEntries | back to summary |
|---|---|
public ParameterAnnotationEntry[] getParameterAnnotationEntries()
| |
| getReturnType | back to summary |
|---|---|
public Type getReturnType()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Return value as defined by given BCELComparator strategy. By default return the hash code of the method's name XOR signature.
| |
| setComparator | back to summary |
|---|---|
public static void setComparator(final BCELComparator<Method> comparator)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return string representation close to declaration format, 'public static void main(String[] args) throws IOException', e.g. | |