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

All Superinterfaces:
JavaResourceAnnotatedElement, JavaResourceNode, Model
All Known Subinterfaces:
JavaResourceAbstractType, JavaResourceAttribute, JavaResourceEnum, JavaResourceEnumConstant, JavaResourceField, JavaResourceMethod, JavaResourceType

public interface JavaResourceMember
extends JavaResourceAnnotatedElement

Java source code or binary persistent member.

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.JavaResourceNode
JavaResourceNode.Root
 
Field Summary
static java.lang.String FINAL_PROPERTY
           
static java.lang.String PUBLIC_PROPERTY
           
static java.lang.String STATIC_PROPERTY
           
static java.lang.String TRANSIENT_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceAnnotatedElement
ANNOTATIONS_COLLECTION, NESTABLE_ANNOTATIONS_COLLECTION
 
Method Summary
 java.lang.String getName()
           
 boolean isFinal()
          Return whether the member is final.
 boolean isFor(java.lang.String memberName, int occurrence)
          Return whether the Java resource member is for the specified member.
 boolean isPublic()
           
 boolean isStatic()
           
 boolean isTransient()
           
 void resolveTypes(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
          Resolve type information that could be dependent on changes elsewhere in the workspace.
 Annotation setPrimaryAnnotation(java.lang.String primaryAnnotationName, java.lang.Iterable<java.lang.String> supportingAnnotationNames)
          Sets the specified primary annotation as the first annotation, and removes all known annotations (i.e.
 
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

FINAL_PROPERTY

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

TRANSIENT_PROPERTY

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

PUBLIC_PROPERTY

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

STATIC_PROPERTY

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

getName

java.lang.String getName()

setPrimaryAnnotation

Annotation setPrimaryAnnotation(java.lang.String primaryAnnotationName,
                                java.lang.Iterable<java.lang.String> supportingAnnotationNames)
Sets the specified primary annotation as the first annotation, and removes all known annotations (i.e. does not remove non-persistence annotations) which are not included in the supporting annotations.


isFinal

boolean isFinal()
Return whether the member is final.


isTransient

boolean isTransient()

isPublic

boolean isPublic()

isStatic

boolean isStatic()

isFor

boolean isFor(java.lang.String memberName,
              int occurrence)
Return whether the Java resource member is for the specified member.


resolveTypes

void resolveTypes(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Resolve type information that could be dependent on changes elsewhere in the workspace.