Dali Provisional API
Release 3.2

org.eclipse.jpt.common.core.resource.java
Interface JavaResourceTypeCache

All Superinterfaces:
JavaResourceModel, JavaResourceModel.Root, JptResourceModel, JptResourceTypeReference, Model

public interface JavaResourceTypeCache
extends JavaResourceModel.Root

Java persistent type cache - used to hold "external" types Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.2

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel.Root
JavaResourceModel.Root.TypesTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel
JavaResourceModel.FileTransformer, JavaResourceModel.Root
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel.Root
TYPES_COLLECTION, TYPES_TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel
FILE_TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
Method Summary
 JavaResourceAbstractType addType(IType jdtType)
          Add a Java resource type for the specified JDT type to the cache.
 int getTypesSize()
          Return the size of the cache's types.
 boolean removeTypes(IFile jarFile)
          Remove all the types associated with the specified JAR file.
 
Methods inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel.Root
getAnnotationProvider, getTypes, resourceModelChanged
 
Methods inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel
getFile, getJavaResourceCompilationUnit, getParent, getRoot, getTextRange
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceModel
addResourceModelListener, getFile, removeResourceModelListener
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Method Detail

getTypesSize

int getTypesSize()
Return the size of the cache's types.


addType

JavaResourceAbstractType addType(IType jdtType)
Add a Java resource type for the specified JDT type to the cache. Return the new type.


removeTypes

boolean removeTypes(IFile jarFile)
Remove all the types associated with the specified JAR file. Return whether any types were removed.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.