Interface Member
All Known Implementing Classes:
-
public interface Member
Member is an interface that reflects identifying information about
a single member (a field or a method) or a constructor.
Author:
-
Nakul Saraiya
See Also:
-
| Field Summary |
int |
DECLARED Identifies the set of declared members of a class or interface. |
int |
PUBLIC Identifies the set of all public members of a class or interface,
including inherited members. |
| Method Summary |
|
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. |
|
getName() Returns the simple name of the underlying member or constructor
represented by this Member. |
boolean |
isSynthetic() Returns true if this member was introduced by
the compiler; returns false otherwise. |
Field Detail
PUBLIC
public static final int PUBLIC
-
Identifies the set of all public members of a class or interface,
including inherited members.
See Also:
-
DECLARED
public static final int DECLARED
-
Identifies the set of declared members of a class or interface.
Inherited members are not included.
See Also:
-
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
-
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:
-
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.
Since:
-
1.5
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc. If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com