|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.demeterf.dispatch.MethodDB<M>
public class MethodDB<M>
MethodDB is a List of DBEntries. Includes selection functions and a few creators.
| Constructor Summary | |
|---|---|
MethodDB(List<DBEntry<M>> m)
|
|
| Method Summary | |
|---|---|
static MethodDB<java.lang.reflect.Constructor<?>> |
createConstrDB(java.lang.Class<?> c)
|
static MethodDB<java.lang.reflect.Method> |
createMethodDB(java.lang.Class<?> c,
java.lang.String name)
|
static List<DBEntry<java.lang.reflect.Method>> |
getMethods(java.lang.Class<?> c,
java.lang.String name)
|
static boolean |
isDebug()
|
M |
match(java.lang.Class<?>[] args)
Find the best Match (if any) from this MethodDB for the given argument Types. |
DBEntry<M> |
matchEntry(java.lang.Class<?>[] args)
Return the most specific (first) Match from the entries. |
DBEntry<M> |
matchEntryFast(java.lang.Class<?>[] args)
!Quickly! return the most specific (first) Match from the entries. |
List<DBEntry<M>> |
matchEntrys(java.lang.Class<?>[] args)
Find all the Matches (if any) from this MethodDB for the given argument Types and sort them from more to less specific |
List<DBEntry<M>> |
prefixApp(java.lang.Class<?> c)
Filter the DBEntries based on the number of arguments and the type of the first argument. |
List<DBEntry<M>> |
reduce(java.lang.Class<?>[] args)
Reduce the Methods to only those applicable to the argument Types. |
static void |
setDebug(boolean b)
|
java.lang.String |
toString()
Normal toString() |
java.lang.String |
toString(java.lang.String s)
Return a String representation of this MethodDB with s
in between the method entries |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MethodDB(List<DBEntry<M>> m)
| Method Detail |
|---|
public static List<DBEntry<java.lang.reflect.Method>> getMethods(java.lang.Class<?> c,
java.lang.String name)
public static MethodDB<java.lang.reflect.Method> createMethodDB(java.lang.Class<?> c,
java.lang.String name)
public static MethodDB<java.lang.reflect.Constructor<?>> createConstrDB(java.lang.Class<?> c)
public static void setDebug(boolean b)
public static boolean isDebug()
public DBEntry<M> matchEntryFast(java.lang.Class<?>[] args)
null if none is found.
public List<DBEntry<M>> reduce(java.lang.Class<?>[] args)
public M match(java.lang.Class<?>[] args)
null if none is found.
public List<DBEntry<M>> matchEntrys(java.lang.Class<?>[] args)
public DBEntry<M> matchEntry(java.lang.Class<?>[] args)
null if none is found.
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String s)
s
in between the method entries
public List<DBEntry<M>> prefixApp(java.lang.Class<?> c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||