Dali Provisional API
Release 3.2

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

All Superinterfaces:
JavaResourceAnnotatedElement, JavaResourceModel, 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

Nested Class Summary
static class JavaResourceMember.IsFinal
           
static class JavaResourceMember.IsProtected
           
static class JavaResourceMember.IsPublic
           
static class JavaResourceMember.IsStatic
           
static class JavaResourceMember.IsTransient
           
static class 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 FINAL_PROPERTY
           
static org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceMember> IS_FINAL
           
static org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceMember> IS_PROTECTED
           
static org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceMember> IS_PUBLIC
           
static org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceMember> IS_STATIC
           
static org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceMember> IS_TRANSIENT
           
static org.eclipse.jpt.common.utility.transformer.Transformer<JavaResourceMember,String> NAME_TRANSFORMER
           
static String PROTECTED_PROPERTY
           
static String PUBLIC_PROPERTY
           
static String STATIC_PROPERTY
           
static String 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
 String getName()
           
 boolean isFinal()
          Return whether the member is final.
 boolean isFor(String memberName, int occurrence)
          Return whether the Java resource member is for the specified member.
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isPublicOrProtected()
          Return whether the Java resource member is public or protected
 boolean isStatic()
           
 boolean isTransient()
           
 Annotation setPrimaryAnnotation(String primaryAnnotationName, Iterable<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.
 
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

NAME_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<JavaResourceMember,String> NAME_TRANSFORMER

FINAL_PROPERTY

static final String FINAL_PROPERTY
See Also:
Constant Field Values

IS_FINAL

static final org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceMember> IS_FINAL

TRANSIENT_PROPERTY

static final String TRANSIENT_PROPERTY
See Also:
Constant Field Values

IS_TRANSIENT

static final org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceMember> IS_TRANSIENT

PUBLIC_PROPERTY

static final String PUBLIC_PROPERTY
See Also:
Constant Field Values

IS_PUBLIC

static final org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceMember> IS_PUBLIC

STATIC_PROPERTY

static final String STATIC_PROPERTY
See Also:
Constant Field Values

IS_STATIC

static final org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceMember> IS_STATIC

PROTECTED_PROPERTY

static final String PROTECTED_PROPERTY
See Also:
Constant Field Values

IS_PROTECTED

static final org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceMember> IS_PROTECTED
Method Detail

getName

String getName()

setPrimaryAnnotation

Annotation setPrimaryAnnotation(String primaryAnnotationName,
                                Iterable<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()

isProtected

boolean isProtected()

isFor

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


isPublicOrProtected

boolean isPublicOrProtected()
Return whether the Java resource member is public or protected


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.