org.eclipse.jpt.jaxb.core.resource.java
Interface JavaResourceType

All Superinterfaces:
JavaResourceAbstractType, JavaResourceAnnotatedElement, JavaResourceMember, JavaResourceNode, Model

public interface JavaResourceType
extends JavaResourceAbstractType

Java source code or binary class or interface.

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.0
Version:
3.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceAbstractType
JavaResourceAbstractType.Kind
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
Field Summary
static java.lang.String ABSTRACT_PROPERTY
           
static java.lang.String FIELDS_COLLECTION
           
static java.lang.String METHODS_COLLECTION
           
static java.lang.String NO_ARG_CONSTRUCTOR_PROPERTY
           
static java.lang.String SUPERCLASS_QUALIFIED_NAME_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceAbstractType
DECLARING_TYPE_NAME_PROPERTY, ENUMS_COLLECTION, MEMBER_TYPE_PROPERTY, NAME_PROPERTY, PACKAGE_NAME_PROPERTY, QUALIFIED_NAME_PROPERTY, TYPES_COLLECTION
 
Fields inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceMember
FINAL_PROPERTY, PUBLIC_PROPERTY, STATIC_PROPERTY, TRANSIENT_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceAnnotatedElement
ANNOTATIONS_COLLECTION, NESTABLE_ANNOTATIONS_COLLECTION
 
Method Summary
 java.lang.Iterable<JavaResourceField> getFields()
          Return the type's fields.
 java.lang.Iterable<JavaResourceMethod> getMethods()
          Return the type's methods.
 java.lang.String getSuperclassQualifiedName()
          Return the fully qualified name of the type's superclass.
 boolean hasNoArgConstructor()
          Return whether the type has a no-arg constructor (private, protected, or public)
 boolean isAbstract()
          Return whether the type is abstract.
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceAbstractType
getAllEnums, getAllTypes, getDeclaringTypeName, getEnums, getKind, getPackageName, getQualifiedName, getTypes, isIn, isMapped, isMemberType
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceMember
getName, isFinal, isFor, isPublic, isStatic, isTransient, resolveTypes, setPrimaryAnnotation
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceAnnotatedElement
addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotationsSize, getAnnotationsSize, getNameTextRange, getNonNullAnnotation, isAnnotated, moveAnnotation, removeAnnotation, removeAnnotation
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceNode
getFile, getJavaResourceCompilationUnit, getRoot, getTextRange, initialize, synchronizeWith
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 

Field Detail

SUPERCLASS_QUALIFIED_NAME_PROPERTY

static final java.lang.String SUPERCLASS_QUALIFIED_NAME_PROPERTY
See Also:
Constant Field Values

ABSTRACT_PROPERTY

static final java.lang.String ABSTRACT_PROPERTY
See Also:
Constant Field Values

NO_ARG_CONSTRUCTOR_PROPERTY

static final java.lang.String NO_ARG_CONSTRUCTOR_PROPERTY
See Also:
Constant Field Values

FIELDS_COLLECTION

static final java.lang.String FIELDS_COLLECTION
See Also:
Constant Field Values

METHODS_COLLECTION

static final java.lang.String METHODS_COLLECTION
See Also:
Constant Field Values
Method Detail

getSuperclassQualifiedName

java.lang.String getSuperclassQualifiedName()
Return the fully qualified name of the type's superclass.


isAbstract

boolean isAbstract()
Return whether the type is abstract.


hasNoArgConstructor

boolean hasNoArgConstructor()
Return whether the type has a no-arg constructor (private, protected, or public)


getFields

java.lang.Iterable<JavaResourceField> getFields()
Return the type's fields.


getMethods

java.lang.Iterable<JavaResourceMethod> getMethods()
Return the type's methods. This returns *all* methods from the JDT Type