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

All Superinterfaces:
JavaResourceAnnotatedElement, JavaResourceMember, JavaResourceNode, Model
All Known Subinterfaces:
JavaResourceField, JavaResourceMethod

public interface JavaResourceAttribute
extends JavaResourceMember

Java source code or binary attribute (field/method) 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
Version:
3.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
Field Summary
static java.lang.String MODIFIERS_PROPERTY
           
static java.lang.String TYPE_INTERFACE_NAMES_COLLECTION
           
static java.lang.String TYPE_IS_ARRAY_PROPERTY
           
static java.lang.String TYPE_IS_ENUM_PROPERTY
           
static java.lang.String TYPE_IS_INTERFACE_PROPERTY
           
static java.lang.String TYPE_NAME_PROPERTY
           
static java.lang.String TYPE_SUPERCLASS_NAMES_LIST
           
static java.lang.String TYPE_TYPE_ARGUMENT_NAMES_LIST
           
 
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
 int getModifiers()
           
 java.lang.Iterable<java.lang.String> getTypeInterfaceNames()
          Return the names of the attribute type's interfaces.
 java.lang.String getTypeName()
          Return the resolved, qualified name of the attribute's type (e.g.
 org.eclipse.jpt.common.utility.internal.iterables.ListIterable<java.lang.String> getTypeSuperclassNames()
          Return the names of the attribute type's superclasses.
 java.lang.String getTypeTypeArgumentName(int index)
           
 org.eclipse.jpt.common.utility.internal.iterables.ListIterable<java.lang.String> getTypeTypeArgumentNames()
          Return the names of the attribute type's type arguments.
 int getTypeTypeArgumentNamesSize()
           
 boolean typeIsArray()
          Return whether the attribute type is an array.
 boolean typeIsEnum()
          Return whether the attribute type is an enum.
 boolean typeIsInterface()
          Return whether the attribute type is an interface.
 boolean typeIsSubTypeOf(java.lang.String typeName)
          Return whether the attribute's type implements or extends the specified type.
 boolean typeIsVariablePrimitive()
          Return whether the attribute's type is a "variable" primitive type (i.e.
 
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

MODIFIERS_PROPERTY

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

TYPE_NAME_PROPERTY

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

TYPE_IS_INTERFACE_PROPERTY

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

TYPE_IS_ENUM_PROPERTY

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

TYPE_IS_ARRAY_PROPERTY

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

TYPE_SUPERCLASS_NAMES_LIST

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

TYPE_INTERFACE_NAMES_COLLECTION

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

TYPE_TYPE_ARGUMENT_NAMES_LIST

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

typeIsSubTypeOf

boolean typeIsSubTypeOf(java.lang.String typeName)
Return whether the attribute's type implements or extends the specified type.


typeIsVariablePrimitive

boolean typeIsVariablePrimitive()
Return whether the attribute's type is a "variable" primitive type (i.e. any primitive type except 'void').


getModifiers

int getModifiers()
See Also:
Modifier

getTypeName

java.lang.String getTypeName()
Return the resolved, qualified name of the attribute's type (e.g. "java.util.Collection" or "byte[]"). If the type is an array, this name will include the appropriate number of bracket pairs. This name will not include the type's generic type arguments (e.g. "java.util.Collection" will only return "java.util.Collection").

See Also:
#typeTypeArgumentNames()

typeIsInterface

boolean typeIsInterface()
Return whether the attribute type is an interface.


typeIsEnum

boolean typeIsEnum()
Return whether the attribute type is an enum.


typeIsArray

boolean typeIsArray()
Return whether the attribute type is an array.


getTypeSuperclassNames

org.eclipse.jpt.common.utility.internal.iterables.ListIterable<java.lang.String> getTypeSuperclassNames()
Return the names of the attribute type's superclasses.


getTypeInterfaceNames

java.lang.Iterable<java.lang.String> getTypeInterfaceNames()
Return the names of the attribute type's interfaces.


getTypeTypeArgumentNames

org.eclipse.jpt.common.utility.internal.iterables.ListIterable<java.lang.String> getTypeTypeArgumentNames()
Return the names of the attribute type's type arguments. The name for any argument that is an array will contain the appropriate number of bracket pairs. The names will not include any further generic type arguments.


getTypeTypeArgumentNamesSize

int getTypeTypeArgumentNamesSize()

getTypeTypeArgumentName

java.lang.String getTypeTypeArgumentName(int index)