Examples of Method


Examples of org.openhab.binding.tellstick.internal.JNA.Method

    logger.trace("Update with telldus state");
    for (TellstickBindingProvider prov : providers) {
      for (String name : prov.getItemNames()) {
        TellstickDevice dev = prov.getDevice(name);
        if (dev != null) {
          Method method = Method.getMethodById(dev.getStatus());
          sendToOpenHab(name, resolveCommand(method, dev.getData()));
        }

      }
    }
View Full Code Here

Examples of org.ow2.asm.commons.Method

        cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
        cw.visit(V1_1, ACC_PUBLIC, "Example", null, "java/lang/Object", null);

        // creates a GeneratorAdapter for the (implicit) constructor
        Method m = Method.getMethod("void <init> ()");
        GeneratorAdapter mg = new GeneratorAdapter(ACC_PUBLIC,
                m,
                null,
                null,
                cw);
View Full Code Here

Examples of org.perl6.metamodel.Method

        options = new HashMap();
       
        // Set up the class data
        HashMap cls = new HashMap();
        HashMap cmeths = new HashMap();
        Method m1 = new Method () {
            public java.lang.Object code (java.lang.Object inv, ArrayList args) {
                return "Foo.bar";
            }
        };   
        cmeths.put("bar", m1);
View Full Code Here

Examples of org.persvr.data.Method

import org.persvr.data.GlobalData;
import org.persvr.data.Method;

public class PersevereNativeFunction extends BaseFunction {
  public PersevereNativeFunction(String name){
    method = new Method(name);
    ScriptRuntime.setObjectProtoAndParent(this, GlobalData.getGlobalScope());
  }
View Full Code Here

Examples of org.restlet.client.data.Method

            for (Annotation annotation : javaMethod.getAnnotations()) {
                Annotation methodAnnotation = annotation.annotationType()
                        .getAnnotation(org.restlet.client.engine.Method.class);

                if (methodAnnotation != null) {
                    Method restletMethod = Method
                            .valueOf(((org.restlet.client.engine.Method) methodAnnotation)
                                    .value());

                    String toString = annotation.toString();
                    int startIndex = annotation.annotationType()
View Full Code Here

Examples of org.restlet.data.Method

   * requests, this returns the parameters from the request's body.
   */
  public static Form getParameters(Request request)
    throws ResourceException
  {
    Method reqMethod = request.getMethod();

    if (Method.GET.equals(reqMethod) || Method.HEAD.equals(reqMethod)) {
      return request.getResourceRef().getQueryAsForm();
    }
    else if (Method.POST.equals(reqMethod)) {
View Full Code Here

Examples of org.springframework.ide.eclipse.quickfix.jdt.processors.RequestMappingDialog.Method

      TextEdit importEdit = JdtQuickfixUtils.getTextEditForImport(cu, REQUEST_MAPPING_IMPORT);
      if (importEdit != null) {
        edit.addChild(importEdit);
      }

      Method methodType = dialog.getMethodType();
      if (methodType == Method.GET) {
        methodTypeString = "GET";
      }
      else if (methodType == Method.POST) {
        methodTypeString = "POST";
View Full Code Here

Examples of org.wymiwyg.wrhapi.Method

  }

  @Override
  public String getMethod() {
    try {
            Method method = wrhapiRequest.getMethod();
            if (method != null) {
                return (method.toString()).substring(8);
            } else {
                return null;
            }
        } catch (HandlerException ex) {
            throw new RuntimeException(ex);
View Full Code Here

Examples of rocket.generator.rebind.method.Method

    }
    asyncMethodParameters.add(this.getAsyncCallback());

    // make sure that a method with the same signature actually exists on
    // the async interface...
    Method asyncMethod = asyncServiceInterface.findMostDerivedMethod(methodName, asyncMethodParameters);
    if (null == asyncMethod) {
      this.throwMatchingAsyncInterfaceMethodNotFoundException(method);
    }
    if (false == asyncMethod.returnsVoid()) {
      this.throwIncompatibleMethodFound(asyncMethod);
    }
    context.debug("Found matching async interface method: " + asyncMethod);

    // create the method on client...
    final NewMethod newMethod = asyncMethod.copy(client);
    newMethod.setAbstract(false);
    newMethod.setFinal(true);

    // rename all parameters to parameterN
    GeneratorHelper.renameParametersToParameterN(newMethod);
View Full Code Here

Examples of wpn.hdri.ss.data.Method

                                                     String interpolationAlias, long delay, double precision) {
        if (!devices.contains(deviceName)) {
            addDevice(deviceName);
        }

        Method method = Method.valueOf(methodAlias.toUpperCase());
        Interpolation interpolation = Interpolation.valueOf(interpolationAlias.toUpperCase());


        DeviceAttribute attribute = new DeviceAttribute();
        attribute.setName(attrName);
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.