Class JavaModelCache
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaModelCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<IJavaElement, IElementInfo> Cache of open children of openable Java Model Java elementsstatic booleanstatic final intstatic final intstatic final intstatic final Stringprotected LRUCache<IJavaElement, IElementInfo> Cache of open binary type (inside a jar) that have a non-open parent Values are either instance of IBinaryType or Object (seeNON_EXISTING_JAR_TYPE_INFO)protected doubleprotected JavaElementInfoActive Java Model Infostatic final IBinaryInfoprotected ElementCache<ITypeRoot> Cache of open compilation unit and class filesprotected ElementCache<IPackageFragment> Cache of open package fragmentsprotected HashMap<IJavaProject, JavaElementInfo> Cache of open projects.static final Stringprotected ElementCache<IPackageFragmentRoot> Cache of open package fragment roots.static boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExistingElement(IJavaElement element) getInfo(IJavaElement element) Returns the info for the element.protected IElementInfopeekAtInfo(IJavaElement element) Returns the info for this element without disturbing the cache ordering.protected voidputInfo(IJavaElement element, IElementInfo info) Remember the info for the element.protected voidprotected voidremoveInfo(JavaElement element) Removes the info of the element from the cache.protected voidtoString()toStringFillingRation(String prefix)
-
Field Details
-
VERBOSE
public static boolean VERBOSE -
DEBUG_CACHE_INSERTIONS
public static boolean DEBUG_CACHE_INSERTIONS -
DEFAULT_ROOT_SIZE
public static final int DEFAULT_ROOT_SIZE- See Also:
-
DEFAULT_PKG_SIZE
public static final int DEFAULT_PKG_SIZE- See Also:
-
DEFAULT_OPENABLE_SIZE
public static final int DEFAULT_OPENABLE_SIZE- See Also:
-
RATIO_PROPERTY
- See Also:
-
JAR_TYPE_RATIO_PROPERTY
- See Also:
-
NON_EXISTING_JAR_TYPE_INFO
-
memoryRatio
protected double memoryRatio -
modelInfo
Active Java Model Info -
projectCache
Cache of open projects. -
rootCache
Cache of open package fragment roots. -
pkgCache
Cache of open package fragments -
openableCache
Cache of open compilation unit and class files -
childrenCache
Cache of open children of openable Java Model Java elements -
jarTypeCache
Cache of open binary type (inside a jar) that have a non-open parent Values are either instance of IBinaryType or Object (seeNON_EXISTING_JAR_TYPE_INFO)
-
-
Constructor Details
-
JavaModelCache
public JavaModelCache()
-
-
Method Details
-
getInfo
Returns the info for the element. -
getExistingElement
-
peekAtInfo
Returns the info for this element without disturbing the cache ordering. -
putInfo
Remember the info for the element. -
removeInfo
Removes the info of the element from the cache. -
resetJarTypeCache
protected void resetJarTypeCache() -
removeFromJarTypeCache
-
toString
-
toStringFillingRation
-