Class JavaModelCache
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaModelCache
The cache of java elements to their respective info.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LRUCache<ClasspathAccessRule,ClasspathAccessRule> Cache of access rulesprotected Map<IJavaElement,Object> Cache of open children of openable Java Model Java elementsstatic booleanstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringprotected LRUCache<IJavaElement,Object> 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 Objectprotected 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 TypeMethodDescriptionstatic StringgetElementType(IJavaElement element) getExistingElement(IJavaElement element) getInfo(IJavaElement element) Returns the info for the element.protected doubleprotected ObjectpeekAtInfo(IJavaElement element) Returns the info for this element without disturbing the cache ordering.protected voidputInfo(IJavaElement element, Object 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_PROJECT_SIZE
public static final int DEFAULT_PROJECT_SIZE- See Also:
-
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:
-
DEFAULT_CHILDREN_SIZE
public static final int DEFAULT_CHILDREN_SIZE- See Also:
-
DEFAULT_ACCESSRULE_SIZE
public static final int DEFAULT_ACCESSRULE_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 -
accessRuleCache
Cache of access rules -
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
-
getMemoryRatio
protected double getMemoryRatio() -
peekAtInfo
Returns the info for this element without disturbing the cache ordering. -
putInfo
Remember the info for the element. -
getElementType
-
removeInfo
Removes the info of the element from the cache. -
resetJarTypeCache
protected void resetJarTypeCache() -
removeFromJarTypeCache
-
toString
-
toStringFillingRation
-