Package jminusminus

Class Method


class Method extends Member
This class provides a wrapper for methods.
  • Constructor Details

    • Method

      public Method(Method method)
      Constructs a method given its internal representation.
      Parameters:
      method - the internal representation.
  • Method Details

    • returnType

      public Type returnType()
      Returns this method's return type.
      Returns:
      this method's return type.
    • toDescriptor

      public String toDescriptor()
      Returns the JVM descriptor for this member.
      Specified by:
      toDescriptor in class Member
      Returns:
      the JVM descriptor for this member.
    • member

      protected Member member()
      Returns this member's internal representation.
      Specified by:
      member in class Member
      Returns:
      this member's internal representation.