Dali Provisional API
Release 3.2

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

All Superinterfaces:
JavaResourceAnnotatedElement, JavaResourceMember, JavaResourceModel, Model
All Known Subinterfaces:
JavaResourceEnum, JavaResourceType

public interface JavaResourceAbstractType
extends JavaResourceMember

Java source code or binary type. This corresponds to a AbstractTypeDeclaration (which is why the name is somewhat wonky.)

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:
3.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceMember
JavaResourceMember.IsFinal, JavaResourceMember.IsProtected, JavaResourceMember.IsPublic, JavaResourceMember.IsStatic, JavaResourceMember.IsTransient, JavaResourceMember.NameTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement
JavaResourceAnnotatedElement.AstNodeType, JavaResourceAnnotatedElement.AstNodeTypeEquals, JavaResourceAnnotatedElement.IsAnnotated, JavaResourceAnnotatedElement.IsAnnotatedWithAnyOf
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel
JavaResourceModel.FileTransformer, JavaResourceModel.Root
 
Field Summary
static String DECLARING_TYPE_NAME_PROPERTY
           
static String ENUMS_COLLECTION
           
static String TYPE_BINDING_PROPERTY
           
static String TYPES_COLLECTION
           
 
Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceMember
FINAL_PROPERTY, IS_FINAL, IS_PROTECTED, IS_PUBLIC, IS_STATIC, IS_TRANSIENT, NAME_TRANSFORMER, PROTECTED_PROPERTY, PUBLIC_PROPERTY, STATIC_PROPERTY, TRANSIENT_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement
ANNOTATIONS_COLLECTION, IS_ANNOTATED, NESTABLE_ANNOTATIONS_COLLECTION
 
Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel
FILE_TRANSFORMER
 
Method Summary
 Iterable<JavaResourceEnum> getAllEnums()
          Return all the enums; the enum itself, its children, its grandchildren, etc.
 Iterable<JavaResourceType> getAllTypes()
          Return all the types; the type itself, its children, its grandchildren, etc.
 String getDeclaringTypeName()
          Return the name of the type's "declaring type".
 Iterable<JavaResourceEnum> getEnums()
          Return the immediately nested enums (children).
 TypeBinding getTypeBinding()
          Return the type binding for this type
 Iterable<JavaResourceType> getTypes()
          Return the immediately nested types (classes or interfaces, not enums or annotations) (children).
 boolean isIn(IPackageFragment packageFragment)
           
 boolean isIn(IPackageFragmentRoot sourceFolder)
           
 
Methods inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceMember
getName, isFinal, isFor, isProtected, isPublic, isPublicOrProtected, isStatic, isTransient, setPrimaryAnnotation
 
Methods inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement
addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotationsSize, getAnnotationsSize, getAstNodeType, getContainerAnnotation, getNameTextRange, getNonNullAnnotation, getTextRange, getTopLevelAnnotations, isAnnotated, isAnnotatedWithAnyOf, moveAnnotation, removeAnnotation, removeAnnotation
 
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
 

Field Detail

TYPE_BINDING_PROPERTY

static final String TYPE_BINDING_PROPERTY
See Also:
Constant Field Values

DECLARING_TYPE_NAME_PROPERTY

static final String DECLARING_TYPE_NAME_PROPERTY
See Also:
Constant Field Values

TYPES_COLLECTION

static final String TYPES_COLLECTION
See Also:
Constant Field Values

ENUMS_COLLECTION

static final String ENUMS_COLLECTION
See Also:
Constant Field Values
Method Detail

getTypeBinding

TypeBinding getTypeBinding()
Return the type binding for this type


getDeclaringTypeName

String getDeclaringTypeName()
Return the name of the type's "declaring type". Return null if the type is a top-level type.


isIn

boolean isIn(IPackageFragment packageFragment)

isIn

boolean isIn(IPackageFragmentRoot sourceFolder)

getTypes

Iterable<JavaResourceType> getTypes()
Return the immediately nested types (classes or interfaces, not enums or annotations) (children).


getAllTypes

Iterable<JavaResourceType> getAllTypes()
Return all the types; the type itself, its children, its grandchildren, etc.


getEnums

Iterable<JavaResourceEnum> getEnums()
Return the immediately nested enums (children).


getAllEnums

Iterable<JavaResourceEnum> getAllEnums()
Return all the enums; the enum itself, its children, its grandchildren, etc.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.