Klasse JavaModelCache
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaModelCache
The cache of java elements to their respective info.
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected Map
<IJavaElement, Object> Cache of open children of openable Java Model Java elementsstatic boolean
static final int
static final int
static final int
static final int
static final int
static final 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 final 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 final String
protected ElementCache
<IPackageFragmentRoot> Cache of open package fragment roots.static boolean
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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
protected void
removeInfo
(JavaElement element) Removes the info of the element from the cache.protected void
toString()
toStringFillingRation
(String prefix)
-
Felddetails
-
VERBOSE
public static boolean VERBOSE -
DEBUG_CACHE_INSERTIONS
public static boolean DEBUG_CACHE_INSERTIONS -
DEFAULT_PROJECT_SIZE
public static final int DEFAULT_PROJECT_SIZE- Siehe auch:
-
DEFAULT_ROOT_SIZE
public static final int DEFAULT_ROOT_SIZE- Siehe auch:
-
DEFAULT_PKG_SIZE
public static final int DEFAULT_PKG_SIZE- Siehe auch:
-
DEFAULT_OPENABLE_SIZE
public static final int DEFAULT_OPENABLE_SIZE- Siehe auch:
-
DEFAULT_CHILDREN_SIZE
public static final int DEFAULT_CHILDREN_SIZE- Siehe auch:
-
RATIO_PROPERTY
- Siehe auch:
-
JAR_TYPE_RATIO_PROPERTY
- Siehe auch:
-
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
)
-
-
Konstruktordetails
-
JavaModelCache
public JavaModelCache()
-
-
Methodendetails
-
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
-