The interface defining certain shared properties of a class member.
Type | Name | Signature |
---|---|---|
method | getAttributes | public Attribute[] getAttributes() |
method | getKind | public MemberKind getKind() |
method | getName | public String getName() |
method | isStatic | public bool isStatic() |
public Attribute[] getAttributes()
Get all the attributes annotated on the member definition.
The result array contains each instance of Attribute placed at the type definition.
Returns
public MemberKind getKind()
Get the kind of this member. Typically used before downcasting.
Returns
public String getName()
Get the name of this member. Note due to class inheritance and method overloading, there could be multiple methods possessing the same name. All the constructors have the same name as that of the containing class.
Returns
public bool isStatic()
Whether this member is static. Constructors are always non-static, but methods and fields can vary for each member.
If a member is static, accessing to it requires specification of the instance target, which is prominently supplied among the arguments upon the pertaining calls.
Returns