-
- All Known Implementing Classes:
- Constructor, Field, Method
public interface Member
Member is an interface that reflects identifying information about a single member (a field or a method) or a constructor.- See Also:
Class
,Field
,Method
,Constructor
-
-
Field Summary
Fields Modifier and Type Field and Description static int
DECLARED
Identifies the set of declared members of a class or interface.static int
PUBLIC
Identifies the set of all public members of a class or interface, including inherited members.
-
Method Summary
Methods Modifier and Type Method and Description Class<?>
getDeclaringClass()
Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.int
getModifiers()
Returns the Java language modifiers for the member or constructor represented by this Member, as an integer.String
getName()
Returns the simple name of the underlying member or constructor represented by this Member.boolean
isSynthetic()
Returnstrue
if this member was introduced by the compiler; returnsfalse
otherwise.
-
-
-
Field Detail
-
PUBLIC
static final int PUBLIC
Identifies the set of all public members of a class or interface, including inherited members.
-
DECLARED
static final int DECLARED
Identifies the set of declared members of a class or interface. Inherited members are not included.
-
-
Method Detail
-
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:
Modifier
-
isSynthetic
boolean isSynthetic()
Returnstrue
if this member was introduced by the compiler; returnsfalse
otherwise.- Returns:
- true if and only if this member was introduced by the compiler.
- Since:
- 1.5
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/lang/reflect/Member.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.