Examples of MethodId


Examples of com.android.dex.MethodId

  private final List<ArgType> args;
  private final ClassInfo declClass;
  private final String shortId;

  private MethodInfo(DexNode dex, int mthIndex) {
    MethodId mthId = dex.getMethodId(mthIndex);
    name = dex.getString(mthId.getNameIndex());
    declClass = ClassInfo.fromDex(dex, mthId.getDeclaringClassIndex());

    ProtoId proto = dex.getProtoId(mthId.getProtoIndex());
    retType = dex.getType(proto.getReturnTypeIndex());
    args = dex.readParamList(proto.getParametersOffset());

    StringBuilder signature = new StringBuilder();
    signature.append(name);
View Full Code Here

Examples of com.google.dexmaker.MethodId

    @SuppressWarnings({ "rawtypes", "unchecked" })
    private static void generateCodeForReturnStatement(Code code, Class methodReturnType,
            Local localForResultOfInvoke, Local localOfMethodReturnType, Local aBoxedResult) {
        if (PRIMITIVE_TO_UNBOX_METHOD.containsKey(methodReturnType)) {
            code.cast(aBoxedResult, localForResultOfInvoke);
            MethodId unboxingMethodFor = getUnboxMethodForPrimitive(methodReturnType);
            code.invokeVirtual(unboxingMethodFor, localOfMethodReturnType, aBoxedResult);
            code.returnValue(localOfMethodReturnType);
        } else if (void.class.equals(methodReturnType)) {
            code.returnVoid();
        } else {
View Full Code Here

Examples of com.google.dexmaker.MethodId

        // Lookup some types we'll need along the way.
        TypeId<System> systemType = TypeId.get(System.class);
        TypeId<PrintStream> printStreamType = TypeId.get(PrintStream.class);

        // Identify the 'hello()' method on declaringType.
        MethodId hello = declaringType.getMethod(TypeId.VOID, "hello");

        // Declare that method on the dexMaker. Use the returned Code instance
        // as a builder that we can append instructions to.
        Code code = dexMaker.declare(hello, Modifier.STATIC | Modifier.PUBLIC);
View Full Code Here

Examples of net.sf.joafip.store.entity.proxy.MethodId

      final OpcodeNodeMethod currentOpcodeNode) {
    ownedMethodCallOfOtherInstanceList.add(currentOpcodeNode);
  }

  public void addPrivateMethodName(final String methodName, final String desc) {
    privateMethodSet.add(new MethodId(methodName, desc));
  }
View Full Code Here

Examples of net.sf.joafip.store.entity.proxy.MethodId

  }

  public List<OpcodeNodeMethod> getOtherInstancePrivateCallList() {
    final List<OpcodeNodeMethod> list = new LinkedList<OpcodeNodeMethod>();
    for (OpcodeNodeMethod opcodeNodeMethod : ownedMethodCallOfOtherInstanceList) {
      final MethodId key =
      /**/new MethodId(opcodeNodeMethod.getMethodName(),// NOPMD
          opcodeNodeMethod.getDesc());
      if (privateMethodSet.contains(key)) {
        list.add(opcodeNodeMethod);
      }
    }
View Full Code Here

Examples of org.openengsb.ui.admin.model.MethodId

        @SuppressWarnings("unchecked")
        List<? extends MethodId> choices =
            ((DropDownChoice<MethodId>) tester.getComponentFromLastRenderedPage("methodCallForm:methodList"))
                .getChoices();
        for (int i = 0; i < choices.size(); i++) {
            MethodId methodId = choices.get(i);
            if (methodId.getName().equals(name)
                    && ArrayUtils.isEquals(methodId.getArgumentTypes(), parameterTypes)) {
                formTester.select("methodList", i);
                tester.executeAjaxEvent("methodCallForm:methodList", "onchange");
                return;
            }
        }
View Full Code Here

Examples of org.openengsb.ui.admin.model.MethodId

     * Displays the corresponding message to the currently selected Method of the currently active Service in the
     * "ServiceTree"
     */
    private void displayJSONMessages() {
        ServiceId serviceId = fetchCurrentSelectService();
        MethodId methodId = fetchCurrentSelectMethod();
        if (serviceId == null) {
            String serviceNotSet = new StringResourceModel("json.view.ServiceNotSet", this, null).getString();
            info(serviceNotSet);
            return;
        }
View Full Code Here

Examples of org.openengsb.ui.admin.model.MethodId

        for (String s : methodSignatures) {
            LOGGER.info("# " + s);
        }
        List<MethodId> methodChoices = new ArrayList<MethodId>();
        for (Method m : methods) {
            methodChoices.add(new MethodId(m));
        }
        methodList.setChoices(methodChoices);
        LOGGER.info("populating list with: {}", methodChoices);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.