Examples of Calltype


Examples of org.jruby.runtime.CallType

    @Override
    public Object call(ThreadContext context, IRubyObject self, IRubyObject receiver, DynamicScope currDynScope, Object[] temp) {
        IRubyObject[] values = prepareArguments(context, self, args, currDynScope, temp);
       
        if (callSite == null) {
            CallType callType = self == receiver ? CallType.FUNCTIONAL : CallType.NORMAL;
            RuntimeHelpers.invoke(context, receiver, name, values, callType, Block.NULL_BLOCK);
        } else {
            callSite.call(context, self, receiver, values);
        }
       
View Full Code Here

Examples of org.jruby.runtime.CallType

    }

    @JRubyMethod(rest = true, frame = true, visibility = PRIVATE, compat = RUBY1_8)
    public static IRubyObject method_missing(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) {
        Visibility lastVis = context.getLastVisibility();
        CallType lastCallType = context.getLastCallType();

        if (args.length == 0 || !(args[0] instanceof RubySymbol)) {
            throw context.runtime.newArgumentError("no id given");
        }
View Full Code Here

Examples of org.jruby.runtime.CallType

        ArgumentsCallback argsCallback = getArgsCallback(callNode.getArgsNode());
        CompilerCallback closureArg = getBlock(callNode.getIterNode());

        String name = callNode.getName();
        CallType callType = CallType.NORMAL;

        if (argsCallback != null && argsCallback.getArity() == 1) {
            Node argument = callNode.getArgsNode().childNodes().get(0);
            if (argument instanceof FixnumNode) {
                if (MethodIndex.hasFastFixnumOps(name)) {
View Full Code Here

Examples of org.jruby.runtime.CallType

    }

    @JRubyMethod(name = "method_missing", rest = true, module = true, visibility = PRIVATE, compat = RUBY1_9)
    public static IRubyObject method_missing19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) {
        Visibility lastVis = context.getLastVisibility();
        CallType lastCallType = context.getLastCallType();

        if (args.length == 0 || !(args[0] instanceof RubySymbol)) {
            throw context.runtime.newArgumentError("no id given");
        }
View Full Code Here

Examples of org.jruby.runtime.CallType

    }

    @JRubyMethod(name = "method_missing", rest = true, module = true, visibility = PRIVATE)
    public static IRubyObject method_missing19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) {
        Visibility lastVis = context.getLastVisibility();
        CallType lastCallType = context.getLastCallType();

        if (args.length == 0 || !(args[0] instanceof RubySymbol)) {
            throw context.runtime.newArgumentError("no id given");
        }
View Full Code Here

Examples of org.jruby.runtime.CallType

        return module;
    }

    public static IRubyObject method_missing(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) {
        Visibility lastVis = context.getLastVisibility();
        CallType lastCallType = context.getLastCallType();

        if (args.length == 0 || !(args[0] instanceof RubySymbol)) {
            throw context.runtime.newArgumentError("no id given");
        }
View Full Code Here

Examples of org.openhab.library.tel.types.CallType

      return;
   
    eventCache.put(uuid, channel);
    itemMap.put(uuid, new LinkedList<FreeswitchBindingConfig>());
   
    CallType call = channel.getCall();
   
    logger.debug("new call to : {} from : {}",
        call.getDestNum(), call.getOrigNum());

    for (FreeswitchBindingProvider provider : providers) {
      for (String itemName : provider.getItemNames()) {
        FreeswitchBindingConfig config = provider
            .getFreeswitchBindingConfig(itemName);
View Full Code Here

Examples of org.openhab.library.tel.types.CallType

   * @param config
   */
  private void endCallItemUpdate(FreeswitchBindingConfig config){
   
    OnOffType activeState =  OnOffType.OFF;;
    CallType callType = (CallType)CallType.EMPTY;
    StringType callerId = StringType.EMPTY;

    /*
     * A channel has ended that has this item associated with it
     * We still need to check if this item is associated with other
View Full Code Here

Examples of org.openhab.library.tel.types.CallType

      String orig = getEventHeader(ORIG_NUMBER);
      if(StringUtils.isBlank(dest))
        dest = "unknown";
      if(StringUtils.isBlank(orig))
        orig = "unknown";
      return new CallType(orig,dest);
    }
View Full Code Here

Examples of org.openhab.library.tel.types.CallType

                : CallType.EMPTY;
          } else if (event.eventType.equals("CONNECT")) {
            if (bindingType
                .equals(FritzboxBindingProvider.TYPE_ACTIVE)) {
              state = itemType.isAssignableFrom(SwitchItem.class) ? OnOffType.ON
                  : new CallType(event.externalNo, event.line);
            } else {
              state = itemType.isAssignableFrom(SwitchItem.class) ? OnOffType.OFF
                  : CallType.EMPTY;
            }
          } else if (event.eventType.equals("RING")
              && bindingType
                  .equals(FritzboxBindingProvider.TYPE_INBOUND)) {
            state = itemType.isAssignableFrom(SwitchItem.class) ? OnOffType.ON
                : new CallType(event.externalNo,
                    event.internalNo);
          } else if (event.eventType.equals("CALL")
              && bindingType
                  .equals(FritzboxBindingProvider.TYPE_OUTBOUND)) {
            state = itemType.isAssignableFrom(SwitchItem.class) ? OnOffType.ON
                : new CallType(event.internalNo,
                    event.externalNo);
          }
          if (state != null) {
            eventPublisher.postUpdate(itemName, state);
          }
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.