|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectphp.java.bridge.MethodCache
public final class MethodCache
Cache [Entry(object, method, parameters) -> Method]. No synchronization, so use this class per thread or per request only.
Nested Class Summary | |
---|---|
static class |
MethodCache.Entry
A cache entry. |
Constructor Summary | |
---|---|
MethodCache()
Create a new method cache. |
Method Summary | |
---|---|
void |
clear()
Removes all mappings from this cache. |
java.lang.reflect.Method |
get(MethodCache.Entry entry)
Get the method for the entry |
MethodCache.Entry |
getEntry(java.lang.String name,
java.lang.Object obj,
java.lang.Object[] args)
Get a cache entry from a name, class and arguments. |
void |
put(MethodCache.Entry entry,
java.lang.reflect.Method method)
Store a constructor with an entry |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodCache()
Method Detail |
---|
public java.lang.reflect.Method get(MethodCache.Entry entry)
entry
- The entry
public void put(MethodCache.Entry entry, java.lang.reflect.Method method)
entry
- The cache entrymethod
- The methodpublic MethodCache.Entry getEntry(java.lang.String name, java.lang.Object obj, java.lang.Object[] args)
name
- The method nameobj
- The object or classargs
- The arguments
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |