|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 | |
---|---|
List<DBEntry<M>> |
allMethods()
|
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()
|
List<DBEntry<M>> |
matchAllEntries(java.lang.Class<?>[] args)
Match All the entries that are applicable |
DBEntry<M> |
matchEntryFast(java.lang.Class<?>[] args)
!Quickly! return the most specific (first) Match from the entries. |
List<DBEntry<M>> |
prefixApp(java.lang.Class<?> c)
Filter the DBEntries based on the number of arguments and the type of the first argument. |
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>> matchAllEntries(java.lang.Class<?>[] args)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String s)
s
in between the method entries
public List<DBEntry<M>> prefixApp(java.lang.Class<?> c)
public List<DBEntry<M>> allMethods()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |