public class

JvmMethodSig

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.android.JvmMethodSig

Class Overview

Representation of JVM internal method signature. Example: Lcom/abc/Foo;->bar(ILjava/lang/String;)V

Summary

Fields
public String csig
public String mname
public List<String> partypes
public String rettype
Public Constructors
JvmMethodSig(String csig, String mname, String rettype, String... partypes)
JvmMethodSig(String csig, String mname, String rettype, Collection<String> partypes)
Public Methods
String generate()
String getMethodName()
List<String> getParameterTypes()
String getReturnType()
String getType()
static String nameAndParams(String msig)
Parse a jvvm method name and return the name+params string, eg bar(I[J[[Ljava/lang/String;) for msig= Lcom/abc/Foo;->bar(I[J[[Ljava/lang/String;)V
static JvmMethodSig parse(String msig)
Explode the internal signature (full) of a method.
static JvmMethodSig parseSafe(String msig)
Explode the internal signature (full) of a method.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public String csig

public String mname

public List<String> partypes

public String rettype

Public Constructors

public JvmMethodSig (String csig, String mname, String rettype, String... partypes)

public JvmMethodSig (String csig, String mname, String rettype, Collection<String> partypes)

Public Methods

public String generate ()

public String getMethodName ()

public List<String> getParameterTypes ()

public String getReturnType ()

public String getType ()

public static String nameAndParams (String msig)

Parse a jvvm method name and return the name+params string, eg bar(I[J[[Ljava/lang/String;) for msig= Lcom/abc/Foo;->bar(I[J[[Ljava/lang/String;)V

Parameters
msig a binary method signature
Returns
  • null on error

public static JvmMethodSig parse (String msig)

Explode the internal signature (full) of a method. This method throws on error.

Parameters
msig a binary method signature, eg Lcom/abc/Foo;->bar(I[J[[Ljava/lang/String;)V
Returns
  • parsed object; throws on error

public static JvmMethodSig parseSafe (String msig)

Explode the internal signature (full) of a method. This method does not throw on error.

Parameters
msig a binary method signature, eg Lcom/abc/Foo;->bar(I[J[[Ljava/lang/String;)V
Returns
  • null on error