- All Known Implementing Classes:
- Constructor,- Executable,- 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.
- Since:
- 1.1
- See Also:
- Class,- Field,- Method,- Constructor
- 
Field Summary
- 
Method SummaryModifier and Type Method Description Class<?>getDeclaringClass()Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.intgetModifiers()Returns the Java language modifiers for the member or constructor represented by this Member, as an integer.StringgetName()Returns the simple name of the underlying member or constructor represented by this Member.booleanisSynthetic()Returnstrueif this member was introduced by the compiler; returnsfalseotherwise.
- 
Field Details- 
PUBLICstatic final int PUBLICIdentifies the set of all public members of a class or interface, including inherited members.- See Also:
- Constant Field Values
 
- 
DECLAREDstatic final int DECLAREDIdentifies the set of declared members of a class or interface. Inherited members are not included.- See Also:
- Constant Field Values
 
 
- 
- 
Method Details- 
getDeclaringClassClass<?> 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
 
- 
getNameString getName()Returns the simple name of the underlying member or constructor represented by this Member.- Returns:
- the simple name of the underlying member
 
- 
getModifiersint 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
 
- 
isSyntheticboolean isSynthetic()Returnstrueif this member was introduced by the compiler; returnsfalseotherwise.- 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
 
 
-