Java Code Examples for com.android.dx.rop.type.Prototype#getParameterFrameTypes()

The following examples show how to use com.android.dx.rop.type.Prototype#getParameterFrameTypes() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-direct} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeDirect(Prototype meth) {
    return new Rop(RegOps.INVOKE_DIRECT,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 2
Source File: Rops.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-polymorphic} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokePolymorphic(Prototype meth) {
    return new Rop(RegOps.INVOKE_POLYMORPHIC,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 3
Source File: Rops.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-interface} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeInterface(Prototype meth) {
    return new Rop(RegOps.INVOKE_INTERFACE,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 4
Source File: Rops.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-direct} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeDirect(Prototype meth) {
    return new Rop(RegOps.INVOKE_DIRECT,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 5
Source File: Rops.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-super} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeSuper(Prototype meth) {
    return new Rop(RegOps.INVOKE_SUPER,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 6
Source File: Rops.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-virtual} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeVirtual(Prototype meth) {
    return new Rop(RegOps.INVOKE_VIRTUAL,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 7
Source File: Rops.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-static} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeStatic(Prototype meth) {
    return new Rop(RegOps.INVOKE_STATIC,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 8
Source File: Rops.java    From buck with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-super} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeSuper(Prototype meth) {
    return new Rop(RegOps.INVOKE_SUPER,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 9
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-polymorphic} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokePolymorphic(Prototype meth) {
    return new Rop(RegOps.INVOKE_POLYMORPHIC,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 10
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-interface} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeInterface(Prototype meth) {
    return new Rop(RegOps.INVOKE_INTERFACE,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 11
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-static} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeStatic(Prototype meth) {
    return new Rop(RegOps.INVOKE_STATIC,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 12
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-super} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeSuper(Prototype meth) {
    return new Rop(RegOps.INVOKE_SUPER,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 13
Source File: Rops.java    From buck with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-static} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeStatic(Prototype meth) {
    return new Rop(RegOps.INVOKE_STATIC,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 14
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-static} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeStatic(Prototype meth) {
    return new Rop(RegOps.INVOKE_STATIC,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 15
Source File: Rops.java    From buck with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-direct} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeDirect(Prototype meth) {
    return new Rop(RegOps.INVOKE_DIRECT,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 16
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-polymorphic} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokePolymorphic(Prototype meth) {
    return new Rop(RegOps.INVOKE_POLYMORPHIC,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 17
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-interface} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeInterface(Prototype meth) {
    return new Rop(RegOps.INVOKE_INTERFACE,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 18
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-direct} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeDirect(Prototype meth) {
    return new Rop(RegOps.INVOKE_DIRECT,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 19
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-super} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeSuper(Prototype meth) {
    return new Rop(RegOps.INVOKE_SUPER,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}
 
Example 20
Source File: Rops.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the appropriate {@code invoke-virtual} rop for the
 * given type. The result is typically a newly-allocated instance.
 *
 * @param meth {@code non-null;} descriptor of the method, including the
 * {@code this} parameter
 * @return {@code non-null;} an appropriate instance
 */
public static Rop opInvokeVirtual(Prototype meth) {
    return new Rop(RegOps.INVOKE_VIRTUAL,
                   meth.getParameterFrameTypes(),
                   StdTypeList.THROWABLE);
}