Package jminusminus

Class Member

java.lang.Object
jminusminus.Member
Direct Known Subclasses:
Constructor, Field, Method

abstract class Member extends Object
This abstract base class provides a wrapper for class members (ie, fields, methods, and constructors).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the type in which this member was declared.
    boolean
    Returns true if this member is abstract, and false otherwise.
    boolean
    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
    Returns true if this member is public, and false otherwise.
    boolean
    Returns true if this member is static, and false otherwise.
    protected abstract Member
    Returns this member's internal representation.
    Returns this member's (simple) name.
    abstract String
    Returns the JVM descriptor for this member.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Member

      Member()
  • Method Details

    • name

      public String name()
      Returns this member's (simple) name.
      Returns:
      this member's (simple) name.
    • declaringType

      public Type 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

      public abstract String toDescriptor()
      Returns the JVM descriptor for this member.
      Returns:
      the JVM descriptor for this member.
    • member

      protected abstract Member member()
      Returns this member's internal representation.
      Returns:
      this member's internal representation.