Examples of cast()


Examples of com.google.speedtracer.client.model.EventRecord.cast()

    while (startCopyIndex == -1 && index >= 0) {
      EventRecord aRecord = eventRecords.get(index);
     
      if (aRecord.getType() == EventRecordType.NETWORK_REQUEST_WILL_BE_SENT) {
        // see if there's a redirect
        NetworkRequestWillBeSentEvent request = aRecord.cast();
        String redirectUrl = request.getRedirectUrl();
        if(redirectUrl != null) {
          // if so, keep searching for the original URL request
          searchUrl = redirectUrl;
        }
View Full Code Here

Examples of com.headius.invokebinder.Binder.cast()

                    }


                    if (nc.isStatic()) {
                        if (b.type().parameterCount() == nc.getNativeSignature().length) {
                            mh = b
                                    .cast(nc.getNativeReturn(), nc.getNativeSignature())
                                    .invokeStaticQuiet(MethodHandles.lookup(), nc.getNativeTarget(), nc.getNativeName());
//                            System.out.println(mh);
                        }
                    } else {
View Full Code Here

Examples of com.headius.invokebinder.SmartBinder.cast()

               
            } else {

                selfTest = selfTest.insert(0, "selfClass", selfClass);
               
                test = selfTest
                        .cast(boolean.class, RubyClass.class, IRubyObject.class)
                        .invoke(TEST);
            }
           
            gwt = createGWT(test, target, fallback, entry, site, curry);
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.cast()

        @Override
        public void onAfterAnimate(AfterAnimateEvent event) {
          appearance.updateScrollButtons(getElement());
        }
      });
      stripWrap.<FxElement> cast().scrollTo(ScrollDirection.LEFT, pos, true, fx);
    } else {
      stripWrap.setScrollLeft(pos);
      appearance.updateScrollButtons(getElement());
    }
  }
View Full Code Here

Examples of com.sissi.ucenter.relation.muc.MucRelation.cast()

    for (Item item : protocol.cast(XMucAdmin.class).getItem()) {
      // 同Nickname多JID
      for (JID each : this.mapping.mapping(item.actor(context.jid()).group(group))) {
        MucRelation relation = super.ourRelation(each, group).cast(MucRelation.class);
        for (JID to : super.whoSubscribedMe(group)) {
          super.findOne(to, true).write(item.presence().add(this.judger.add(new XUser(group, to, room.allowed(to, RoomConfig.WHOISEXISTS)).item(item.hidden(room.allowed(to, RoomConfig.WHOISALLOW, each)).relation(relation.cast(MucRelation.class).role(item.getRole(), true)).actor(context.jid()))).cast(XUser.class)));
        }
      }
    }
    return true;
  }
View Full Code Here

Examples of eu.admire.dispel.parser.types.Type.cast()

                    && arrayDimensions.get(paramName) == 0)
            {
                executionState.getUsedProcessingElements().
                    registerType(
                        paramName,
                        ((ProcessingElementType)type.cast(value)));
            }
        }
        return result;
    }
 
View Full Code Here

Examples of games.stendhal.server.entity.spell.Spell.cast()

  public void onAction(Player player, RPAction action) {
    //base object is always the player sending the action
    action.put("baseobject", player.getID().getObjectID());
    Entity target = EntityHelper.entityFromTargetName(action.get(TARGET), player);
    Spell spell = (Spell) EntityHelper.entityFromSlot(player, action);
    spell.cast(player, target);
  }

}
View Full Code Here

Examples of jfun.yan.Component.cast()

        //instantiate it using "name".
        registerEagerInstantiation(c);
        return c;
      }
      else
        return c.cast(Service.class);
    }
  }
  private static Component toListComponent(List l){
    final Component[] elems = new Component[l.size()];
    for(int i=0; i<elems.length; i++){
View Full Code Here

Examples of jpotter.spells.Aguamenti.cast()

        Component comp = agua.getComponent();
//        comp.setSize(agua.getDimension());
        container.add(comp);
        container.validate();
        System.out.println("displayable?"+(comp.getGraphics()!=null)+";"+comp.getWidth()+";"+comp.getHeight());
        agua.cast(new Point(20, 20), new Point(100, 100), container);
      }
    });
    setLayout(new GridBagLayout());
    GridBagConstraints gbc = new GridBagConstraints(0, 0, 1, 1, 0d, 0d,
        GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(2, 2,
View Full Code Here

Examples of jpotter.spells.Spell.cast()

    Point target = getTargetPos(from, s);
    jPanel.add(s.getComponent());
    jPanel.setComponentZOrder(s.getComponent(), 0);
    jPanel.validate();
    if (target != null) {
      s.cast(target, getDefaultStartPos(s), jPanel, false);
      return true;
    }
    return false;
  }
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.