Class JvmMethodSig
java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.JvmMethodSig
Representation of JVM internal method signature. Example:
Lcom/abc/Foo;->bar(ILjava/lang/String;)V-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJvmMethodSig(String csig, String mname, String rettype, String... partypes) Create a JVM method signature.JvmMethodSig(String csig, String mname, String rettype, Collection<String> partypes) Create a JVM method signature. -
Method Summary
Modifier and TypeMethodDescriptiongenerate()Generate the JVM internal method signature.Get the method name.Get the parameter type signatures.Get the return type signature.getType()Get the declaring class signature.static StringnameAndParams(String msig) Parse a jvvm method name and return the name+params string, egbar(I[J[[Ljava/lang/String;)for msig=Lcom/abc/Foo;->bar(I[J[[Ljava/lang/String;)Vstatic JvmMethodSigExplode the internal signature (full) of a method.static JvmMethodSigExplode the internal signature (full) of a method.
-
Field Details
-
csig
Declaring class signature. -
mname
Method name. -
rettype
Return type signature. -
partypes
Parameter type signatures.
-
-
Constructor Details
-
JvmMethodSig
Create a JVM method signature.- Parameters:
csig- declaring class signaturemname- method namerettype- return type signaturepartypes- parameter type signatures
-
JvmMethodSig
Create a JVM method signature.- Parameters:
csig- declaring class signaturemname- method namerettype- return type signaturepartypes- parameter type signatures
-
-
Method Details
-
getType
Get the declaring class signature.- Returns:
- the declaring class signature
-
getMethodName
Get the method name.- Returns:
- the method name
-
getReturnType
Get the return type signature.- Returns:
- the return type signature
-
getParameterTypes
Get the parameter type signatures.- Returns:
- the parameter type signatures
-
generate
Generate the JVM internal method signature.- Returns:
- the generated signature
-
parse
Explode the internal signature (full) of a method. This method throws on error.- Parameters:
msig- a binary method signature, egLcom/abc/Foo;->bar(I[J[[Ljava/lang/String;)V- Returns:
- parsed object; throws on error
-
parseSafe
Explode the internal signature (full) of a method. This method does not throw on error.- Parameters:
msig- a binary method signature, egLcom/abc/Foo;->bar(I[J[[Ljava/lang/String;)V- Returns:
- null on error
-
nameAndParams
Parse a jvvm method name and return the name+params string, egbar(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
-