Class MethodDescriptor


  • public class MethodDescriptor
    extends java.lang.Object
    Representation of a "method descriptor" (JVMS 4.3.3).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String[] parameterFds
      The field descriptors of the method parameters.
      java.lang.String returnFd
      The field descriptor of the method return value.
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodDescriptor​(java.lang.String s)
      Parse a method descriptor into parameter FDs and return FDs.
      MethodDescriptor​(java.lang.String[] parameterFds, java.lang.String returnFd)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String prependParameter​(java.lang.String md, java.lang.String parameterFd)
      Patches an additional parameter into a given method descriptor.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • parameterFds

        public final java.lang.String[] parameterFds
        The field descriptors of the method parameters.
      • returnFd

        public final java.lang.String returnFd
        The field descriptor of the method return value.
    • Constructor Detail

      • MethodDescriptor

        public MethodDescriptor​(java.lang.String[] parameterFds,
                                java.lang.String returnFd)
      • MethodDescriptor

        public MethodDescriptor​(java.lang.String s)
        Parse a method descriptor into parameter FDs and return FDs.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        The "method descriptor" (JVMS 4.3.3)
      • prependParameter

        public static java.lang.String prependParameter​(java.lang.String md,
                                                        java.lang.String parameterFd)
        Patches an additional parameter into a given method descriptor.