Package japicmp.util

Class MethodDescriptorParser

java.lang.Object
japicmp.util.MethodDescriptorParser

public class MethodDescriptorParser extends Object
  • Field Details

    • parameters

      private final List<String> parameters
    • returnType

      private String returnType
  • Constructor Details

    • MethodDescriptorParser

      public MethodDescriptorParser()
  • Method Details

    • parse

      public void parse(String methodDescriptor)
      Parses a method descriptor as specified in the Java Virtual Machine Specification (see http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.3.3).
      Parameters:
      methodDescriptor - the method descriptor
    • parseReturnValue

      private void parseReturnValue(String signature, int parenthesisCloseIndex)
    • parseParameters

      private void parseParameters(String signature, int parenthesisCloseIndex)
    • parseTypes

      public List<String> parseTypes(String paramPart)
    • getParameters

      public List<String> getParameters()
    • getReturnType

      public String getReturnType()
    • getMethodSignature

      public String getMethodSignature(String methodName)