Examples of Context


Examples of Rakudo.Runtime.Context

    /// <param name="Name"></param>
    /// <returns></returns>
    public static ArrayList<RakudoCodeRef.Instance> FindCandidates(Context callerScope, Context protoScope, String candidateHolderName)
    {
        ArrayList<RakudoCodeRef.Instance> result = new ArrayList<RakudoCodeRef.Instance>();
        Context curScope = null;
        do
        {   // Get the next outer scope, or alternatively start off with the
            // caller scope.  (parenthesized for clarity).
            curScope = (curScope == null) ? callerScope : curScope.Outer;
            if (curScope == null)
View Full Code Here

Examples of Strategy.Context

    while (num2 == null) {
      System.out.print("Enter another number: ");
      num2 = getNumber(stratScan.next());
    }
   
    Context ctx = new Context(new OperationAdd());
    System.out.println(num1 + " + " + num2 + " = " + ctx.executeStrategy(num1, num2));
   
    ctx = new Context(new OperationSubtract());
    System.out.println(num1 + " - " + num2 + " = " + ctx.executeStrategy(num1, num2));
   
    ctx = new Context(new OperationMultiply());
    System.out.println(num1 + " * " + num2 + " = " + ctx.executeStrategy(num1, num2));
   
 
View Full Code Here

Examples of android.content.Context

      }
      if (wasClosed) {
        // this can happen if you are calling get/release and then get again
        logger.info("helper has already been closed and is being re-opened.");
      }
      Context appContext = context.getApplicationContext();
      if (factory == null) {
        if (helperClass == null) {
          innerSetHelperClass(lookupHelperClass(appContext, context.getClass()));
        }
        helper = constructHelper(helperClass, appContext);
View Full Code Here

Examples of anvil.script.Context

   * @param script Module
   */
  public Product(Address address, OutputStream output, Citizen citizen, Module script)
  {
    _script = script;
    _context = new Context(Thread.currentThread(), address.getZone(), citizen, _globals);
    _context.setOutputStream(output)
  }
View Full Code Here

Examples of ariba.ui.meta.core.Context

    }

    public String searchOperation ()
    {
        if (_searchOperation == null) {
            Context context = MetaContext.currentContext(this);
            _searchOperation = (String)context.propertyForKey("searchOperation");
            _supportsTextSearch = context.booleanPropertyForKey("textSearchSupported", false);
        }
        return _searchOperation;
    }
View Full Code Here

Examples of atunit.spring.Context

    protected void loadBeanDefinitions(Class<?> testClass, BeanDefinitionRegistry registry) {
        XmlBeanDefinitionReader xml = new XmlBeanDefinitionReader(registry);

        String resourceName = testClass.getSimpleName() + ".xml";
        Context ctxAnno = testClass.getAnnotation(Context.class);
        if (ctxAnno != null) {
            resourceName = ctxAnno.value();
        }
        URL xmlUrl = testClass.getResource(resourceName);
        if (xmlUrl != null) {
            xml.loadBeanDefinitions(new UrlResource(xmlUrl));
        } else if (ctxAnno != null) {
View Full Code Here

Examples of au.csiro.snorocket.core.concurrent.Context

            }
        } else {
            // Ignore
        }
       
        final Context ctx = contextIndex.get(key);
        CR succ = ctx.getSucc();
       
        for(int roleId : succ.getRoles()) {
            NamedRole role = new NamedRole(factory.lookupRoleId(roleId).toString());
            IConceptSet values = getLeaves(succ.lookupConcept(roleId));
            for (IntIterator itr2 = values.iterator(); itr2.hasNext(); ) {
View Full Code Here

Examples of bm.vm.Context

        {
            throw new IllegalArgumentException( "Operation needs exactly two arguments" );
        }
        else
        {
            final Context context = getContext();
            operand1.setContext( context );
            operand2.setContext( context );
            Instance value1 = operand1.run();
            Instance value2 = operand2.run();
View Full Code Here

Examples of br.com.objectos.way.ui.Context

  @Inject
  private ObjectMapper mapper;

  public void map_test() throws JsonGenerationException, JsonMappingException, IOException {
    Context context = Context.of();
    context.put("name", "abc");
    context.put("number", 123);

    String res = mapper.writeValueAsString(context);

    assertThat(res, equalTo("{\"name\":\"abc\",\"number\":123}"));
  }
View Full Code Here

Examples of br.com.objectos.way.view.Context

    if (isValid() && redirect != null) {
      redirectUrl = redirect.getUrl(updated);
    }

    Context context = null;
    FormResponse json = FormJson.of(context, errors, redirectUrl);
    return Reply.with(json).as(Json.class);
  }
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.