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,Object>
Cache of open children of openable Java Model Java elementsstatic boolean
static int
static int
static int
static int
static int
static String
protected 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 double
protected JavaElementInfo
Active Java Model Infostatic Object
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 String
protected ElementCache<IPackageFragmentRoot>
Cache of open package fragment roots.static boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getElementType(IJavaElement element)
getExistingElement(IJavaElement element)
getInfo(IJavaElement element)
Returns the info for the element.protected double
protected Object
peekAtInfo(IJavaElement element)
Returns the info for this element without disturbing the cache ordering.protected void
putInfo(IJavaElement element, Object info)
Remember the info for the element.protected void
removeFromJarTypeCache(BinaryType type)
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_PROJECT_SIZE
public static final int DEFAULT_PROJECT_SIZE- See Also:
- Constant Field Values
-
DEFAULT_ROOT_SIZE
public static final int DEFAULT_ROOT_SIZE- See Also:
- Constant Field Values
-
DEFAULT_PKG_SIZE
public static final int DEFAULT_PKG_SIZE- See Also:
- Constant Field Values
-
DEFAULT_OPENABLE_SIZE
public static final int DEFAULT_OPENABLE_SIZE- See Also:
- Constant Field Values
-
DEFAULT_CHILDREN_SIZE
public static final int DEFAULT_CHILDREN_SIZE- See Also:
- Constant Field Values
-
RATIO_PROPERTY
- See Also:
- Constant Field Values
-
JAR_TYPE_RATIO_PROPERTY
- See Also:
- Constant Field Values
-
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
-
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
-