Examples of Context


Examples of edu.mit.csail.sdg.alloy4compiler.parser.CompModule.Context

        if (cx.unrolls<=0) {
            Pos p = span();
            return new ExprBad(p, toString(), new ErrorType(p, "Macro substitution too deep; possibly indicating an infinite recursion."));
        }
        if (params.size() != args.size()) return this;
        Context cx2 = new Context(realModule, warnings, cx.unrolls-1);
        for(int n=params.size(), i=0; i<n; i++) {
            Expr tmp = args.get(i);
            if (!(tmp instanceof Macro)) tmp = tmp.resolve(tmp.type(), warnings);
            cx2.put(params.get(i).label, tmp);
        }
        return cx2.check(body);
    }
View Full Code Here

Examples of edu.mit.simile.backstage.model.Context

abstract public class Component {
    protected Context _context;
    protected String _id;
   
    protected Component(Context context, String id) {
        _context = new Context(context);
        _id = id;
    }
View Full Code Here

Examples of edu.stanford.nlp.sempre.paraphrase.Context

      Interval interval1 = lemmaToInterval.get(tokens[0]);
      Interval interval2 = lemmaToInterval.get(tokens[1]);
      if(nounNounAlignment(tokens[2],interval1,interval2)) {
        List<String> question1 = Arrays.asList(tokens[0].split("\\s+"));
        List<String> question2 = Arrays.asList(tokens[1].split("\\s+"));
        Context context1 = new Context(question1, interval1);
        Context context2 = new Context(question2, interval2);
        if(!context1.equals(context2)) {
          insertRule(context1,context2);
          insertRule(context2,context1);
        }
        numOfUsedParaphrases++;
View Full Code Here

Examples of gwt.g2d.client.graphics.canvas.Context

    this(circle.getCenterX(), circle.getCenterY(), circle.getRadius());
  }
 
  @Override
  public void visit(Surface surface) {
    Context context = surface.getContext();
    context.moveTo(x, y);
    context.arc(x, y, radius, 0, MathHelper.TWO_PI, true);
  }
View Full Code Here

Examples of httl.Context

  public Object get(String key) {
    if ("parent".equals(key)) {
      return Context.getContext().getParent();
    } else if ("super".equals(key)) {
      Context parent = Context.getContext().getParent();
      return parent == null ? null : parent.getTemplate();
    } else if ("this".equals(key)) {
      return Context.getContext().getTemplate();
    } else if ("engine".equals(key)) {
      return Context.getContext().getEngine();
    } else if ("out".equals(key)) {
View Full Code Here

Examples of info.magnolia.context.Context

        {
            log.error("can't find command {} for job in catalog {}", cmdName, catalogName);
            return;
        }

        Context ctx = new SimpleContext();
        // copy data, else the jobs context could get manipluated by the commands
        ctx.putAll((Map) jobData.get(SchedulerConsts.CONFIG_JOB_PARAMS));

        JobDefinition jd = null;
        try
        {
            jd = jobDefinitionManager.getJobDefinitionByName(jobName);
View Full Code Here

Examples of io.osv.Context

* BSD license as described in the LICENSE file in the top-level directory.
*/
@SuppressWarnings("UnusedDeclaration")
public class IsolatingLogManager extends LogManager {
    private LogManager getDelegate() {
        Context context = ContextIsolator.getInstance().getContext();
        return context.getLogManagerWrapper().getManager();
    }
View Full Code Here

Examples of io.vertx.core.Context

    Counter prev = counters.putIfAbsent(name, counter);
    if (prev != null) {
      counter = prev;
    }
    Counter theCounter = counter;
    Context context = vertx.getOrCreateContext();
    context.runOnContext(v -> resultHandler.handle(Future.completedFuture(theCounter)));
  }
View Full Code Here

Examples of it.eng.spagobi.container.Context

 
  /**
   * Retrieves the context from the input IBeanContainer instance
   */
  public Context getContext(IBeanContainer contextsContainer) {
    Context context;
   
    logger.debug("IN");
   
    context = null;
    try {
View Full Code Here

Examples of it.halfone.hava.container.Context

   * @param token
   * @return
   */
  private static Regex parseToken(String ruleName, String token, Map<String, Regex> existingRule) throws InvalidDocumentException {
    String unmodifiedToken = token;
    Context ctx = new Context();
    ctx.setValue("index", 0);
      ctx.setValue("token", token);
      ctx.setValue("regexList", new ArrayList<Regex>());
      ctx.setValue("existingRule", existingRule);
      ctx.setValue("ruleName", ruleName);
   
      boolean modified = true;
      while(modified){
        for(TokenParser parser : parsers){
          if(modified = parser.parseToken(ctx)){
            break;
          }
        }
      }

      int index = ctx.getValue("index");
      token = ctx.getValue("token");
      List<Regex> regexList = ctx.getValue("regexList");
     
    if (Pattern.matches(TokenParser.ID + "[\\d]+", token)) {
      Regex retVal = regexList.get(index - 1);
      return retVal;
    } else {
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.