Examples of addMethod()


Examples of org.apache.qpid.qmf2.common.SchemaObjectClass.addMethod()

            control.addProperty(new SchemaProperty("state", QmfType.TYPE_STRING));
            control.addProperty(new SchemaProperty("methodCount", QmfType.TYPE_INT));

            SchemaMethod stopMethod = new SchemaMethod("stop", "Stop Agent");
            stopMethod.addArgument(new SchemaProperty("message", QmfType.TYPE_STRING));
            control.addMethod(stopMethod);

            SchemaMethod echoMethod = new SchemaMethod("echo", "Echo Arguments");
            echoMethod.addArgument(new SchemaProperty("sequence", QmfType.TYPE_INT, "{dir:INOUT}"));
            echoMethod.addArgument(new SchemaProperty("map", QmfType.TYPE_MAP, "{dir:INOUT}"));
            control.addMethod(echoMethod);
View Full Code Here

Examples of org.apache.tapestry.enhance.EnhancementOperation.addMethod()

        EnhancementOperation op = newOp();
        IComponentSpecification spec = newSpec();

        Method method = findMethod(AnnotatedPage.class, "getLikeGetter");

        op.addMethod(
                Modifier.PUBLIC,
                new MethodSignature(method),
                "{\n  return getMessages().getMessage(\"like-getter\");\n}\n",
                l);
        op.claimReadonlyProperty("likeGetter");
View Full Code Here

Examples of org.apache.tapestry.ioc.services.ClassFab.addMethod()

        if (eagerLoad)
        {
            cf.addInterface(EagerLoadServiceProxy.class);

            cf.addMethod(Modifier.PUBLIC, new MethodSignature(void.class, "eagerLoadService", null,
                    null), "_delegate();");
        }

        return cf.createClass();
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.services.ClassFab.addMethod()

            String accessClassName = String.format("%s$MethodAccess_%s_%s", getClassName(), sig.getMethodName(),
                    ClassFabUtils.nextUID());

            ClassFab cf = classFactory.newClass(accessClassName, AbstractMethodAccess.class);

            cf.addMethod(Modifier.PUBLIC, INVOKE_SIGNATURE, body);

            cf.addToString(String.format("MethodAccess[method %s of class %s]", sig.getMediumDescription(),
                    getClassName()));

            Class accessClass = cf.createClass();
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.SecurityCollection.addMethod()

            // Configure the security constraints
            SecurityConstraint constraint = new SecurityConstraint();
            SecurityCollection collection = new SecurityCollection();
            collection.setName("Protect PUT");
            collection.addMethod("PUT");
            collection.addPattern("/test");
            constraint.addCollection(collection);
            constraint.addAuthRole("tomcat");
            ctx.addConstraint(constraint);
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.FilterGenerator.addMethod()

  testGen.stripAttributes(true);
  testGen.setMaxLocals();
  testGen.setMaxStack();
  testGen.removeNOPs();
  filterGen.addEmptyConstructor(ACC_PUBLIC);
  filterGen.addMethod(testGen.getMethod());
   
  getXSLTC().dumpClass(filterGen.getJavaClass());
    }

    /**
 
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.NodeCounterGenerator.addMethod()

      il.append(matchGen.loadContextNode());
      _from.translate(nodeCounterGen, matchGen);
      _from.synthesize(nodeCounterGen, matchGen);
      il.append(IRETURN);
       
      nodeCounterGen.addMethod(matchGen);
  }

  /*
   * Compile method matchesCount()
   */
 
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.NodeSortRecordFactGenerator.addMethod()

  il.append(POP);
  il.append(ARETURN);

  constructor.setMaxLocals();
  constructor.setMaxStack();
  sortRecordFactory.addMethod(constructor);
  makeNodeSortRecord.setMaxLocals();
  makeNodeSortRecord.setMaxStack();
  sortRecordFactory.addMethod(makeNodeSortRecord);
  xsltc.dumpClass(sortRecordFactory.getJavaClass());
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.NodeSortRecordGenerator.addMethod()

  MethodGenerator init = compileInit(sortObjects, sortRecord,
             cpg, className);
  MethodGenerator extract = compileExtract(sortObjects, sortRecord,
                   cpg, className);
  sortRecord.addMethod(init);
  sortRecord.addMethod(extract);

  xsltc.dumpClass(sortRecord.getJavaClass());
  return className;
    }
View Full Code Here

Examples of org.aspectj.ajdt.internal.compiler.lookup.HelperInterfaceBinding.addMethod()

  private TypeBinding generatePerObjectInterface(ClassFile classFile) {
    final EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(this.scope);
    UnresolvedType interfaceTypeX = AjcMemberMaker.perObjectInterfaceType(typeX);
    HelperInterfaceBinding interfaceType = new HelperInterfaceBinding(this.binding, interfaceTypeX);
    world.addTypeBindingAndStoreInWorld(interfaceType);
    interfaceType.addMethod(world, AjcMemberMaker.perObjectInterfaceGet(typeX));
    interfaceType.addMethod(world, AjcMemberMaker.perObjectInterfaceSet(typeX));
    interfaceType.generateClass(compilationResult, classFile);
    return interfaceType;
  }
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.