Contents
Hide sidebar Show sidebar
Interface Member
public interface Member
Member is an interface that reflects identifying information about
a single member (a field or a method) or a constructor.
Since:
1.1
See Also:
-
Field Summary
Fields -
Method Summary
All MethodsInstance MethodsAbstract MethodsDefault MethodsModifier and TypeMethodDescriptiondefault Set<AccessFlag>Returns an unmodifiable set of the access flags for this member, possibly empty.Class<?>Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.intReturns the Java language modifiers for the member or constructor represented by this Member, as an integer.getName()Returns the simple name of the underlying member or constructor represented by this Member.booleanReturns true if this member was introduced by the compiler; returns false otherwise.
-
Field Details
-
PUBLIC
static final int PUBLICIdentifies the set of all public members of a class or interface, including inherited members.See Also: -
DECLARED
static final int DECLAREDIdentifies the set of declared members of a class or interface. Inherited members are not included.See Also:
-
-
Method Details
-
getDeclaringClass
Class<?> getDeclaringClass()Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.Returns: an object representing the declaring class of the underlying member -
getName
String getName()Returns the simple name of the underlying member or constructor represented by this Member.Returns: the simple name of the underlying member -
getModifiers
int getModifiers()Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. The Modifier class should be used to decode the modifiers in the integer.Returns: the Java language modifiers for the underlying member See Also: -
accessFlags
Returns an unmodifiable set of the access flags for this member, possibly empty.Implementation Requirements: The default implementation throws UnsupportedOperationException. Returns: an unmodifiable set of the access flags for this member, possibly empty Since: 20 See Also: -
isSynthetic
boolean isSynthetic()Returns true if this member was introduced by the compiler; returns false otherwise.Returns: true if and only if this member was introduced by the compiler. See Java Language Specification: 13.1 The Form of a Binary
Since: 1.5
-
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2026, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.