Package jminusminus
Class Member
java.lang.Object
jminusminus.Member
- Direct Known Subclasses:
Constructor
,Field
,Method
This abstract base class provides a wrapper for class members (ie, fields, methods, and
constructors).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the type in which this member was declared.boolean
Returns true if this member is abstract, and false otherwise.boolean
isFinal()
Returns true if this member is final, and false otherwise.boolean
Returns true if this member is private, and false otherwise.boolean
Returns true if this member is protected, and false otherwise.boolean
isPublic()
Returns true if this member is public, and false otherwise.boolean
isStatic()
Returns true if this member is static, and false otherwise.protected abstract Member
member()
Returns this member's internal representation.name()
Returns this member's (simple) name.abstract String
Returns the JVM descriptor for this member.
-
Constructor Details
-
Member
Member()
-
-
Method Details
-
name
Returns this member's (simple) name.- Returns:
- this member's (simple) name.
-
declaringType
Returns the type in which this member was declared.- Returns:
- the type in which this member was declared.
-
isStatic
public boolean isStatic()Returns true if this member is static, and false otherwise.- Returns:
- true if this member is static, and false otherwise.
-
isPublic
public boolean isPublic()Returns true if this member is public, and false otherwise.- Returns:
- true if this member is public, and false otherwise.
-
isProtected
public boolean isProtected()Returns true if this member is protected, and false otherwise.- Returns:
- true if this member is protected, and false otherwise.
-
isPrivate
public boolean isPrivate()Returns true if this member is private, and false otherwise.- Returns:
- true if this member is private, and false otherwise.
-
isAbstract
public boolean isAbstract()Returns true if this member is abstract, and false otherwise.- Returns:
- true if this member is abstract, and false otherwise.
-
isFinal
public boolean isFinal()Returns true if this member is final, and false otherwise.- Returns:
- true if this member is final, and false otherwise.
-
toDescriptor
Returns the JVM descriptor for this member.- Returns:
- the JVM descriptor for this member.
-
member
Returns this member's internal representation.- Returns:
- this member's internal representation.
-