public interface JavaMember extends JavaElement, JavaHasType, JavaHasName, JavaHasAnnotations
Modifier and Type | Field and Description |
---|---|
static JavaMember[] |
EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
JavaClass |
getOwningClass() |
java.lang.String |
getUniqueIdentifier()
Gets the unique identifier for this declaration.
|
boolean |
isAbstract() |
boolean |
isPackagePrivate() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
getResolvedType, getUnresolvedType
getName
getAnnotation, getAnnotations, getDeclaredAnnotation, getDeclaredAnnotations
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo
static final JavaMember[] EMPTY_ARRAY
JavaClass getOwningClass()
class C<E>
{
E field;
{
C generic = new C();
generic.field = null;
C<String> specific = new C<String>();
specific.field = null;
}
}
If this instance represents the member field accessed by "generic.field", then getOwningClass will return the type for "C".
If this instance represents the member field accessed by "specific.field", then getOwningClass will return the type for "C<String>".
Further, the expressions "generic.field" and "specific.field" do not refer to the same JavaField instance.
boolean isPublic()
boolean isProtected()
boolean isPrivate()
boolean isStatic()
boolean isAbstract()
boolean isPackagePrivate()
java.lang.String getUniqueIdentifier()