Class JavaModelCache
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaModelCache
The cache of java elements to their respective info.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map
<IJavaElement, IElementInfo> Cache of open children of openable Java Model Java elementsstatic boolean
static final int
static final int
static final int
static final String
protected 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 double
protected JavaElementInfo
Active Java Model Infostatic final IBinaryInfo
protected 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 String
protected ElementCache
<IPackageFragmentRoot> Cache of open package fragment roots.static boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetExistingElement
(IJavaElement element) getInfo
(IJavaElement element) Returns the info for the element.protected IElementInfo
peekAtInfo
(IJavaElement element) Returns the info for this element without disturbing the cache ordering.protected void
putInfo
(IJavaElement element, IElementInfo info) Remember the info for the element.protected void
protected void
removeInfo
(JavaElement element) Removes the info of the element from the cache.protected void
toString()
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
-