FileDocCategorySizeDatePackage
MethodRef.javaAPI DocAndroid 5.1 API2304Thu Mar 12 22:18:30 GMT 2015com.android.dexdeps

MethodRef

public class MethodRef extends Object

Fields Summary
private String
mDeclClass
private String
mReturnType
private String
mMethodName
private String[]
mArgTypes
Constructors Summary
public MethodRef(String declClass, String[] argTypes, String returnType, String methodName)
Initializes a new field reference.

        mDeclClass = declClass;
        mArgTypes = argTypes;
        mReturnType = returnType;
        mMethodName = methodName;
    
Methods Summary
private static java.lang.StringdescriptorFromProtoArray(java.lang.String[] protos, java.lang.String returnType)
Returns the method descriptor, given the argument and return type prototype strings.

        StringBuilder builder = new StringBuilder();

        builder.append("(");
        for (int i = 0; i < protos.length; i++) {
            builder.append(protos[i]);
        }

        builder.append(")");
        builder.append(returnType);

        return builder.toString();
    
public java.lang.String[]getArgumentTypeNames()
Gets an array of method argument types.

        return mArgTypes;
    
public java.lang.StringgetDeclClassName()
Gets the name of the method's declaring class.

        return mDeclClass;
    
public java.lang.StringgetDescriptor()
Gets the method's descriptor.

        return descriptorFromProtoArray(mArgTypes, mReturnType);
    
public java.lang.StringgetName()
Gets the method's name.

        return mMethodName;
    
public java.lang.StringgetReturnTypeName()
Gets the method's return type. Examples: "Ljava/lang/String;", "[I".

        return mReturnType;