org.eclipse.jpt.common.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
| 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 |
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
TRANSIENT_PROPERTY
static final String TRANSIENT_PROPERTY
- See Also:
- Constant Field Values
PUBLIC_PROPERTY
static final String PUBLIC_PROPERTY
- See Also:
- Constant Field Values
STATIC_PROPERTY
static final String STATIC_PROPERTY
- See Also:
- Constant Field Values
PROTECTED_PROPERTY
static final String PROTECTED_PROPERTY
- See Also:
- Constant Field Values
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
Copyright (c) 2012 Oracle. All rights reserved.