|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GenericMethod
A GenericMethod is the collection of all methods with the same name and signature. The concept applies only to non-static methods. Implementing and overriding can only take place within the methods of one generic method.
Field Summary | |
(package private) static java.util.Hashtable |
allGenerics
a static hashtable String -> GenericMethod, referencing all GenericMethods via their genericName. |
(package private) java.lang.String |
genericName
method name + signature, identifies one generic method. |
(package private) Klass[] |
instantiatedClasses
all instantiated classes that this generic method applies to. |
(package private) java.util.Vector |
methods
the individual methods of this generic method. |
(package private) java.lang.String |
name
method name |
(package private) boolean |
needsVtable
flag: this generic method needs a vtable. |
(package private) java.lang.String |
signature
method signature (args and return type) |
(package private) int |
vtableIndex
the vtable index for this generic method. |
Constructor Summary | |
private |
GenericMethod(java.lang.String name,
java.lang.String signature)
constructs an empty GenericMethod. |
Method Summary | |
(package private) void |
addMethod(MethodInfo method)
adds a method to this generic method. |
(package private) void |
assignVtableIndex()
compute the vtable index for this class and register it. |
void |
compute()
compute the dependent fields of this GenericMethod object. |
(package private) static java.util.Enumeration |
elements()
returns an Enumeration of all generic methods. |
(package private) static GenericMethod |
forName(java.lang.String name,
java.lang.String signature)
finds or constructs the GenericMethod for the given name and signature. |
(package private) static GenericMethod |
register(MethodInfo method)
registers a method with its generic method. |
Methods inherited from class java.lang.Object |
|
Field Detail |
static java.util.Hashtable allGenerics
java.lang.String genericName
java.lang.String name
java.lang.String signature
java.util.Vector methods
Klass[] instantiatedClasses
This field is set in the 'compute' method. After that point, changes in the 'methods' field or in the class tree are illegal.
boolean needsVtable
This field is set in the 'compute' method. After that point, changes in the 'methods' field or in the class tree are illegal.
int vtableIndex
Constructor Detail |
private GenericMethod(java.lang.String name, java.lang.String signature)
Method Detail |
static GenericMethod forName(java.lang.String name, java.lang.String signature)
static java.util.Enumeration elements()
void addMethod(MethodInfo method)
static GenericMethod register(MethodInfo method)
public void compute()
void assignVtableIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |