Public Methods | |
Method () | |
Method (int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool) | |
Method (Method c) | |
void | accept (Visitor v) |
final Method | copy (ConstantPool constant_pool) |
final Code | getCode () |
final ExceptionTable | getExceptionTable () |
final String | toString () |
Method () | |
Method (int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool) | |
Method (Method c) | |
void | accept (Visitor v) |
final Method | copy (ConstantPool constant_pool) |
final Code | getCode () |
final ExceptionTable | getExceptionTable () |
final String | toString () |
Method (Name name) throws InvalidNameException | |
void | addException (ClassOrInterfaceType exceptionType) throws AlreadyDeclaredException, ClassOrInterfaceTypeNotFoundException |
void | addParameterVariable (Variable variable) throws AlreadyDeclaredException |
boolean | areValidModifiers (int modifiers) |
ClassOrInterfaceType | getDeclaringClassOrInterface () throws NotDeclaredException |
Enumeration | getExceptions () |
int | getModifiers () |
Name | getName () |
Vector | getParameters () |
Vector | getParameterTypes () |
Type | getReturnType () |
Type | getType () |
boolean | hasSameSignature (Method otherMethod) |
boolean | hasSignature (Name name, Vector parameterTypes) |
boolean | isAccessible (ClassOrInterfaceType otherType) |
boolean | isApplicable (Vector argumentTypes) |
boolean | isMoreSpecific (Method otherMethod) |
void | setDeclaringClassOrInterface (ClassOrInterfaceType classOrInterface) |
void | setModifiers (int modifiers) throws InvalidModifiersException |
void | setReturnType (Type type) |
String | toString () |
Static Public Methods | |
boolean | areValidClassMethodModifiers (int modifiers) |
boolean | areValidInterfaceMethodModifiers (int modifiers) |
boolean | areValidModifiers (int modifiers, boolean isInterface) |
Private Methods | |
Method (DataInputStream file, ConstantPool constant_pool) throws IOException, ClassFormatError | |
Method (DataInputStream file, ConstantPool constant_pool) throws IOException, ClassFormatError | |
Private Attributes | |
int | modifiers = 0 |
Type | returnType = null |
Name | name |
Vector | parameters = new Vector() |
Vector | parameterTypes = new Vector() |
Vector | exceptions = new Vector() |
ClassOrInterfaceType | declaringClassOrInterface = null |
Definition at line 13 of file lib/jpf/de/fub/bytecode/classfile/Method.java.
|
Empty constructor, all attributes have to be defined via `setXXX' methods. Use at your own risk. Definition at line 18 of file lib/jpf/de/fub/bytecode/classfile/Method.java. |
|
Definition at line 26 of file lib/jpf/de/fub/bytecode/classfile/Method.java. |
|
Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy. Definition at line 35 of file lib/jpf/de/fub/bytecode/classfile/Method.java. |
|
Construct object from file stream.
Definition at line 44 of file lib/jpf/de/fub/bytecode/classfile/Method.java. |
|
Empty constructor, all attributes have to be defined via `setXXX' methods. Use at your own risk. Definition at line 19 of file src/de/fub/bytecode/classfile/Method.java. |
|
Definition at line 27 of file src/de/fub/bytecode/classfile/Method.java. |
|
Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy. Definition at line 36 of file src/de/fub/bytecode/classfile/Method.java. |
|
Construct object from file stream.
Definition at line 45 of file src/de/fub/bytecode/classfile/Method.java. |
|
Definition at line 51 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
Reimplemented from Instruction. Definition at line 57 of file src/de/fub/bytecode/classfile/Method.java. |
|
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
Reimplemented from Instruction. Definition at line 56 of file lib/jpf/de/fub/bytecode/classfile/Method.java. |
|
Definition at line 60 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 80 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 97 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 116 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 137 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 128 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 63 of file src/de/fub/bytecode/classfile/Method.java. |
|
Definition at line 62 of file lib/jpf/de/fub/bytecode/classfile/Method.java. |
|
Definition at line 69 of file src/de/fub/bytecode/classfile/Method.java. |
|
Definition at line 68 of file lib/jpf/de/fub/bytecode/classfile/Method.java. Referenced by MethodGen::MethodGen(), MethodInfo::loadCode(), MethodInfo::loadExceptions(), MethodInfo::loadLineNumbers(), MethodInfo::loadLocalVariableNames(), and MethodInfo::loadLocalVariableTypes().
|
|
Definition at line 144 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. Referenced by CodeBrowserPane::getHierTree().
|
|
Definition at line 80 of file src/de/fub/bytecode/classfile/Method.java. |
|
Definition at line 79 of file lib/jpf/de/fub/bytecode/classfile/Method.java. |
|
Definition at line 153 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 160 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Reimplemented from FieldOrMethod. Definition at line 167 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. Referenced by MethodGen::MethodGen(), MethodInfo::MethodInfo(), ClassGen::containsMethod(), and CodeHTML::writeMethod().
|
|
Definition at line 181 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 174 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. Referenced by CodeBrowserPane::getHierTree().
|
|
Definition at line 188 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 195 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 203 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 215 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 235 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 254 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. Referenced by isMoreSpecific().
|
|
Definition at line 270 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 278 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 285 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Definition at line 296 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Reimplemented from Instruction. Definition at line 303 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |
|
Return string representation close to declaration format, `public static int main(String[]) throws IOException', e.g.
Reimplemented from Instruction. Definition at line 93 of file src/de/fub/bytecode/classfile/Method.java. |
|
Return string representation close to declaration format, `public static int main(String[]) throws IOException', e.g.
Reimplemented from Instruction. Definition at line 92 of file lib/jpf/de/fub/bytecode/classfile/Method.java. |
|
Name of this instruction.
Reimplemented from Instruction. Definition at line 42 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Method.java. |