org.codehaus.groovy.reflection
Class ClassInfo.LocalMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.Class,ClassInfo>
          extended by org.codehaus.groovy.reflection.ClassInfo.LocalMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Class,ClassInfo>
Enclosing class:
ClassInfo

private static final class ClassInfo.LocalMap
extends java.util.HashMap<java.lang.Class,ClassInfo>


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
private  ClassInfo[] cache
           
private static int CACHE_SIZE
           
private  java.lang.ref.PhantomReference<java.lang.Thread> myThread
           
private  int nextCacheEntry
           
private static ClassInfo NOINFO
           
 
Constructor Summary
private ClassInfo.LocalMap()
           
 
Method Summary
 ClassInfo get(java.lang.Class key)
           
private  ClassInfo getFromCache(java.lang.Class klazz)
           
private  ClassInfo putToCache(ClassInfo classInfo)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

CACHE_SIZE

private static final int CACHE_SIZE
See Also:
Constant Field Values

myThread

private final java.lang.ref.PhantomReference<java.lang.Thread> myThread

nextCacheEntry

private int nextCacheEntry

cache

private final ClassInfo[] cache

NOINFO

private static final ClassInfo NOINFO
Constructor Detail

ClassInfo.LocalMap

private ClassInfo.LocalMap()
Method Detail

get

public ClassInfo get(java.lang.Class key)

getFromCache

private ClassInfo getFromCache(java.lang.Class klazz)

putToCache

private ClassInfo putToCache(ClassInfo classInfo)


Copyright © ${year} The Codehaus. All Rights Reserved.