Interface IDexPrototype
public interface IDexPrototype
This interface represents a DEX
proto_id_item object.-
Method Summary
Modifier and TypeMethodDescriptiongenerate(boolean effective) Generate the prototype string (internal representation).String[]getParameterSignatures(boolean effective) Get the prototype parameter type signatures.int[]Get the type indexes for the prototype parameters.IDexType[]Get the prototype parameter types.Get the prototype return type.intGet the prototype return type index.getReturnTypeSignature(boolean effective) Get the prototype return type signature.Get the shorty string.intGet the string index of the short-form descriptor string for this prototype.
-
Method Details
-
generate
Generate the prototype string (internal representation). The prototype string is a complete version of the shorty prototype.Example:
(I[[JLjava/lang/String;)V- Parameters:
effective- true to use effective names, false to use original names- Returns:
- the prototype string (internal representation), original or effective
-
getShortyIndex
int getShortyIndex()Get the string index of the short-form descriptor string for this prototype.- Returns:
- the 'shorty' string index
-
getShorty
String getShorty()Get the shorty string.- Returns:
- the short-form descriptor string
-
getReturnTypeIndex
int getReturnTypeIndex()Get the prototype return type index.- Returns:
- the return type index
-
getParameterTypeIndexes
int[] getParameterTypeIndexes()Get the type indexes for the prototype parameters.- Returns:
- the array of type indexes for the parameters
-
getParameterTypes
IDexType[] getParameterTypes()Get the prototype parameter types.- Returns:
- the parameter types
-
getParameterSignatures
Get the prototype parameter type signatures.- Parameters:
effective- true to use effective signatures, false to use original signatures- Returns:
- the parameter type signatures
-
getReturnType
IDexType getReturnType()Get the prototype return type.- Returns:
- the return type
-
getReturnTypeSignature
Get the prototype return type signature.- Parameters:
effective- true to use the effective signature, false to use the original signature- Returns:
- the return type signature
-