Class MethodDescriptor

java.lang.Object
org.codehaus.janino.MethodDescriptor

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

    • parameterFDs

      public final String[] parameterFDs
      The field descriptors of the method parameters.
    • returnFD

      public final String returnFD
      The field descriptor of the method return value.
  • Constructor Details

    • MethodDescriptor

      public MethodDescriptor(String[] parameterFds, String returnFd)
    • MethodDescriptor

      public MethodDescriptor(String s)
      Parse a method descriptor into parameter FDs and return FDs.
  • Method Details

    • toString

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

      public static String prependParameter(String md, String parameterFd)
      Patch an additional parameter into a given method descriptor.