Examples of lookup()


Examples of com.google.dart.engine.internal.scope.Scope.lookup()

    for (ImportElement importElement : definingLibrary.getImports()) {
      PrefixElement prefixElement = importElement.getPrefix();
      if (prefixElement != null) {
        Identifier prefixedIdentifier = new SyntheticIdentifier(prefixElement.getName() + "."
            + identifier.getName());
        Element importedElement = nameScope.lookup(prefixedIdentifier, definingLibrary);
        if (importedElement != null) {
          if (element == null) {
            element = importedElement;
          } else {
            element = MultiplyDefinedElementImpl.fromElements(

Examples of com.hmsonline.storm.cassandra.client.AstyanaxClient.lookup()

                                StringSerializer.get())).getKey(new SimpleComposite("key1val", "key2val"))
                .getColumn("foo").execute().getResult();
        assertEquals("fooval", result.getStringValue());
       
        // test lookup
        Map<String, String> map = client.lookup(tupleMapper, tuple);
        assertEquals("fooval", map.get("foo"));
       
       
        map = client.lookup(tupleMapper, tuple, "bar", "foo", Equality.EQUAL);
        assertNotNull(map.get("foo"));

Examples of com.itextpdf.text.pdf.fonts.cmaps.CMap.lookup()

                                    toUnicode = processToUnicode();
                                    if (toUnicode == null) {
                                        toUnicode = new CMap();
                                    }
                                }
                                final String unicode = toUnicode.lookup(new byte[]{(byte) currentNumber}, 0, 1);
                                if ((unicode != null) && (unicode.length() == 1)) {
                                    this.uni2byte.put(unicode.charAt(0), currentNumber);
                                    this.diffmap.put(unicode.charAt(0), currentNumber);
                                }
                            }

Examples of com.itextpdf.text.pdf.fonts.cmaps.CMapToUnicode.lookup()

                                    toUnicode = processToUnicode();
                                    if (toUnicode == null) {
                                        toUnicode = new CMapToUnicode();
                                    }
                                }
                                final String unicode = toUnicode.lookup(new byte[]{(byte) currentNumber}, 0, 1);
                                if ((unicode != null) && (unicode.length() == 1)) {
                                    this.uni2byte.put(unicode.charAt(0), currentNumber);
                                    this.diffmap.put(unicode.charAt(0), currentNumber);
                                }
                            }

Examples of com.starlight.intrepid.Registry.lookup()

    intrepid.addPerformanceListener( new LeaseListener() );

    Registry registry = intrepid.getRemoteRegistry( server_vmid );

    ServerIfc server = ( ServerIfc ) registry.lookup( "server" );
    server.addListener( new ListenerClient() );

    SharedThreadPool.INSTANCE.scheduleAtFixedRate( new GarbageCreator(),
      250, 250, TimeUnit.MILLISECONDS );
  }

Examples of com.sun.appserv.connectors.internal.api.ResourceNamingService.lookup()

                debug("status is null or false: " + this);
                Hashtable env = new Hashtable();
                env.put(ConnectorConstants.DYNAMIC_RECONFIGURATION_PROXY_CALL, "TRUE");
                //TODO ASR : resource-naming-service need to support "env" for module/app scope also
                ResourceNamingService  namingService = ConnectorRuntime.getRuntime().getResourceNamingService();
                actualObject = namingService.lookup(resourceInfo, resourceInfo.getName(), env);
                proxies.put(this, true);
                debug("actualObject : " + actualObject);
            }else{
                debug("status is true: " + this);
            }

Examples of com.sun.jndi.ldap.LdapCtx.lookup()

            } else {
                Assert.assertNotSame(ldapContext1, ldapContext2);
            }
            LOGGER.info("acquired external LDAP context: " + ldapContext1.toString());
            LdapCtx c = (LdapCtx)ldapContext1.lookup("dc=jboss,dc=org");
            c = (LdapCtx)c.lookup("ou=People");
            Attributes attributes = c.getAttributes("uid=jduke");
            Assert.assertTrue(attributes.get("description").contains("awesome"));
            // resource injection
            LookupEjb ejb = (LookupEjb) ctx.lookup("java:module/LookupEjb");
            Assert.assertNotNull(ejb);

Examples of com.sun.tools.javac.code.Scope.lookup()

    for (Type sup : types.closure(owner.type)) {
      if (sup == owner.type) {
        continue; // Skip the owner of the method
      }
      Scope scope = sup.tsym.members();
      for (Scope.Entry e = scope.lookup(methodSymbol.name); e.scope != null; e = e.next()) {
        if (e.sym != null
            && !e.sym.isStatic()
            && ((e.sym.flags() & Flags.SYNTHETIC) == 0)
            && e.sym.name.contentEquals(methodSymbol.name)
            && methodSymbol.overrides(e.sym, owner, types, true)) {

Examples of condor.classad.RecordExpr.lookup()

            while (iteratorExpr.hasNext()) {
                outputDataRecord = new OutputDataRecord();
                jdlRecExpr = (RecordExpr) iteratorExpr.next();

                exprTmp = jdlRecExpr.lookup(OUTPUTDATA_OUTPUTFILE);
                if (exprTmp == null) {
                    throw new Exception("OutputFile is mandatory for the OutputData jdl attribute.");
                }
                outputDataRecord.setODOutputFile(exprTmp.stringValue().trim());

Examples of de.bamberg.ha.api.processing.ServiceRegistry.lookup()

  @Override
  public DistributedExecutionResult call() throws Exception {
    Object callResult=null;
    ServiceRegistry serviceRegistry=CentralServiceRegistryHolder.getInstance().getServiceRegistry();
    if (serviceRegistry!=null) {
      Object obj=serviceRegistry.lookup(serviceName);
      Method method=obj.getClass().getMethod(methodName, determineParameterClasses(parameter) );
      callResult=method.invoke(obj, parameter);
    }
    DistributedExecutionResult result=new DistributedExecutionResult(callResult);
    return result;
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.