org.eclipse.jpt.common.core.resource.java
Interface JavaResourceField
- All Superinterfaces:
- JavaResourceAnnotatedElement, JavaResourceAttribute, JavaResourceMember, JavaResourceModel, Model
public interface JavaResourceField
- extends JavaResourceAttribute
Java source code or binary field
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
| Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceMember |
FINAL_PROPERTY, IS_FINAL, IS_PROTECTED, IS_PUBLIC, IS_STATIC, IS_TRANSIENT, NAME_TRANSFORMER, PROTECTED_PROPERTY, PUBLIC_PROPERTY, STATIC_PROPERTY, TRANSIENT_PROPERTY |
| 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 |
IS_RELEVANT_FOR_FIELD_ACCESS
static final org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceField> IS_RELEVANT_FOR_FIELD_ACCESS
- Field is (annotated) or (non-static and non-transient);
IS_RELEVANT_FOR_PUBLIC_MEMBER_ACCESS
static final org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceField> IS_RELEVANT_FOR_PUBLIC_MEMBER_ACCESS
- Field is (annotated) or (public and non-static and non-transient);
synchronizeWith
void synchronizeWith(FieldDeclaration fieldDeclaration,
VariableDeclarationFragment variableDeclaration)
- The [source] field must be sychronized with both the ASTFieldDeclaration and the
VariableDeclarationFragment.
This is to handle multiple fields declared in a single statement:
private int foo, bar;
The FieldDeclaration is the ASTNode that has the annotations on it.
The VariableDeclarationFragment contains the name and return the
IVariableBinding for the particular field.
resolveTypes
void resolveTypes(FieldDeclaration fieldDeclaration,
VariableDeclarationFragment variableDeclaration)
- Resolve type information that could be dependent on changes elsewhere
in the workspace.
Copyright (c) 2012 Oracle. All rights reserved.