Examples of Method


Examples of com.totsp.gwittir.client.beans.Method

                BeanDescriptor bd = Introspector.INSTANCE.getDescriptor(bean);
                Property[] properties = bd.getProperties();
                if (properties != null) {
                    for (int i = 0; eq && (i < properties.length); i++) {

                        Method pReadMethod = properties[i].getAccessorMethod();

                        if (pReadMethod != null) {
                            Object value1 = pReadMethod.invoke(bean1, null);
                            Object value2 = pReadMethod.invoke(bean2, null);
                            eq = doEquals(value1, value2);
                        }
                    }
                }
            } catch (Exception ex) {
View Full Code Here

Examples of com.vaadin.client.metadata.Method

     * @param invocation
     *            method to invoke
     */
    public void applyInvocation(MethodInvocation invocation,
            ServerConnector connector) {
        Method method = getMethod(invocation);

        Collection<ClientRpc> implementations = connector
                .getRpcImplementations(invocation.getInterfaceName());
        try {
            for (ClientRpc clientRpc : implementations) {
                method.invoke(clientRpc, invocation.getParameters());
            }
        } catch (NoDataException e) {
            throw new IllegalStateException("There is no information about "
                    + method.getSignature()
                    + ". Did you remember to compile the right widgetset?", e);
        }
    }
View Full Code Here

Examples of de.fub.bytecode.classfile.Method

          new String[] {},
          classGen.getStylesheet());
 
  final ConstantPoolGen cpg = sortRecord.getConstantPool()
 
  Method clinit = compileClassInit(sortObjects, sortRecord,
           cpg, className);
  Method extract = compileExtract(sortObjects, sortRecord,
          cpg, className);
  Method sortType = compileSortType(sortObjects, sortRecord,
            cpg, className);
  Method sortOrder = compileSortOrder(sortObjects, sortRecord,
              cpg, className);

  sortRecord.addMethod(clinit);
  sortRecord.addEmptyConstructor(ACC_PUBLIC);
  sortRecord.addMethod(extract);
View Full Code Here

Examples of de.scoopgmbh.copper.monitoring.core.debug.Method

    }
    List<StackFrame>  verboseStack = new ArrayList<StackFrame>(stack.size());
    ClassInfo[] definingClass = new ClassInfo[1];
    MethodInfo currentMethod = getMethod(classInfo, "main", "()V", definingClass);
    for (StackEntry en : stack) {
      Method method = new Method(currentMethod.getDefiningClass(), currentMethod.getDeclaration());
      List<LabelInfo> labelInfos = currentMethod.getLabelInfos();
      LabelInfo lf = labelInfos.size() >= en.jumpNo?
          new LabelInfo(en.jumpNo, -1, Collections.<String>emptyList(), Collections.<Type>emptyList(), Collections.<Type>emptyList(), Collections.<Type>emptyList(), "INCOMPATIBLE_STACKINFO_OUTPUT_ABORTED", "()V")
          :labelInfos.get(en.jumpNo);
      StackFrame sf = new StackFrame(method, lf.getLineNo(), definingClass[0].getSourceCode());
View Full Code Here

Examples of dk.brics.string.intermediate.Method

    }

    // visit interprocedural successors
    if (s instanceof Return) {
      Return returnStm = (Return)s;
      Method method = s.getMethod();
      for (Call call : method.getCallSites()) {
        for (Statement afterCall : call.getSuccs()) {
          after = getInfoBefore(afterCall);
          changed = false;
          transferReturn(returnStm, call, afterCall);
          if (changed) {
View Full Code Here

Examples of dk.brics.xact.analysis.flowgraph.Method

        calls.add((CallStm)stm);
    }
    ControlFlowBuilder cfg = new ControlFlowBuilder(graph, null);
    // transform!
    for (CallStm call : calls) {
      Method target = call.getMethod();
      cfg.setOrigin(call.getOrigin());
      Statement start = cfg.currentStatement();
      Variable[] params = target.getParameters();
      Variable[] args = call.getArguments();
      VariableFilter paramsOnly = new VariableFilter(false, VariableFilter.Kind.CALL);
      VariableFilter argsOnly = new VariableFilter(false);
      VariableFilter notArgs = new VariableFilter(true);
      VariableFilter resultFilter = new VariableFilter(call.getResult(), VariableFilter.Kind.RETURN);
      VariableFilter returnFilter = new VariableFilter(target.getReturnVar());
      for (int i=0; i<args.length; i++) {
        paramsOnly.addVariable(params[i]);
        argsOnly.addVariable(args[i]);
        notArgs.removeVariable(args[i]);
        if (call.isArgumentMutable(i)) {
          resultFilter.addVariable(call.getArgument(i));
          returnFilter.addVariable(target.getParameter(i));
        }
      }
      cfg.addFilter(argsOnly);
      for (int i=0; i<args.length; i++) {
        cfg.addStatement(new VarStm(params[i], args[i], call.getOrigin()));
      }
      graph.addEdge(cfg.currentStatement(), target.getEntry(), paramsOnly);
      cfg.moveToStatement(target.getExit());
      cfg.addStatement(new VarStm(call.getResult(), target.getReturnVar(), call.getOrigin()), returnFilter);
      /*for (int i=0; i<args.length; i++) {
        if (call.isArgumentMutable(i)) {
          cfg.addStatement(new VarStm(call.getArgument(i), target.getParameter(i), call.getOrigin()));
        }
      }*/
 
View Full Code Here

Examples of edu.cmu.cs.fusion.Method

      vArr[ndx] = var;
      ndx++;
    }
   
    if (rVar != null)
      return new Pair<ReturnInstruction, Method>(new StubReturnInstruction(rVar), new Method(vArr, tarVar, methodBinding));
    else
      return new Pair<ReturnInstruction, Method>(new DefaultReturnInstruction(), new Method(vArr, tarVar, methodBinding));
  }
View Full Code Here

Examples of eu.admire.dispel.members.Method

    }
  }

  public static void addMissingAnnotationMembers(Annotation annotation) {
    String valueMethodName = "value";
    Method valueMethod = annotation.getContainedMethod(valueMethodName);
    if (valueMethod == null) {
      valueMethod = AnnotationsFactory.eINSTANCE.createAnnotationAttribute();
      valueMethod.setName(valueMethodName);
      ClassifierReference type = TypesFactory.eINSTANCE.createClassifierReference();
      type.setTarget(annotation.getConcreteClassifier("java.lang.String"));
      valueMethod.setTypeReference(type);
      annotation.getDefaultMembers().add(valueMethod);
    }
  }
View Full Code Here

Examples of flex2.compiler.abc.Method

        return var;
    }

    private static Method getGetter(Context cx, AbcClass watchedClass, ReferenceValue ref, MultiName multiName)
    {
        Method meth = null;
        Slot s;
        // if ref.slot is non-null then the reference has already been resolved.
        if( ref != null )
        {
            meth = getMethodFromRef(cx, watchedClass, ref, Tokens.GET_TOKEN);
View Full Code Here

Examples of gnu.bytecode.Method

        ClassType c = new ClassType("HelloWorld");
        c.setSuper("java.lang.Object");
        c.setModifiers(Access.PUBLIC);
        c.setSourceFile("HelloWorld.java");

        Method m = c.addMethod("<init>", "()V", Access.PUBLIC);
        CodeAttr code = m.startCode();
        code.pushScope();
        code.emitPushThis();
        code.emitInvokeSpecial(objectCtor);
        code.emitReturn();
        code.popScope();

        m = c.addMethod("main", "([Ljava/lang/String;)V", Access.PUBLIC
                | Access.STATIC);
        code = m.startCode();
        code.pushScope();
        code.emitGetStatic(outField);
        code.emitPushString("Hello world!");
        code.emitInvokeVirtual(printlnMethod);
        code.emitReturn();
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.