Package org.rascalmpl.interpreter.matching

Examples of org.rascalmpl.interpreter.matching.LiteralPattern


      super(__param1, __param2);
    }

    @Override
    public IMatchingResult buildMatcher(IEvaluatorContext eval) {
      return new LiteralPattern(eval, this, interpret(eval.getEvaluator()).getValue());
    }
View Full Code Here


      super(__param1, __param2);
    }

    @Override
    public IMatchingResult buildMatcher(IEvaluatorContext eval) {
      return new LiteralPattern(eval, this, interpret(eval.getEvaluator()).getValue());
    }
View Full Code Here

      this.stat = new StringTemplateConverter().convert(this.getStringLiteral());
    }

    @Override
    public IMatchingResult buildMatcher(IEvaluatorContext eval) {
      return new LiteralPattern(eval, this, interpret(eval.getEvaluator()).getValue());
    }
View Full Code Here

  }
 
  @Override
  public IMatchingResult buildMatcher(IEvaluatorContext eval) {
    if (constant) {
      return new LiteralPattern(eval, this,  node);
    }
   
    java.util.List<IMatchingResult> kids = new java.util.ArrayList<IMatchingResult>(args.size());
    for (int i = 0; i < args.size(); i+=2) { // skip layout elements for efficiency
      kids.add(args.get(i).buildMatcher(eval));
View Full Code Here

  }
 
  @Override
  public IMatchingResult buildMatcher(IEvaluatorContext eval) {
    if (constant) {
      return new LiteralPattern(eval, this,  node);
    }
   
    java.util.List<IMatchingResult> kids = new java.util.ArrayList<IMatchingResult>(args.size());
    for (org.rascalmpl.ast.Expression arg : args) {
      kids.add(arg.buildMatcher(eval));
View Full Code Here

  }
 
  @Override
  public IMatchingResult buildMatcher(IEvaluatorContext eval) {
    if (constant) {
      return new LiteralPattern(eval, this,  node);
    }
   
    java.util.List<IMatchingResult> kids = new java.util.ArrayList<IMatchingResult>(args.size());
    for (org.rascalmpl.ast.Expression arg : args) {
      kids.add(arg.buildMatcher(eval));
View Full Code Here

  }
 
  @Override
  public IMatchingResult buildMatcher(IEvaluatorContext eval) {
    if (constant) {
      return new LiteralPattern(eval, this,  node);
    }

    java.util.List<IMatchingResult> kids = new java.util.ArrayList<IMatchingResult>(alts.size());
    for (org.rascalmpl.ast.Expression arg : alts) {
      kids.add(arg.buildMatcher(eval));
    }

    IMatchingResult setMatcher = new SetPattern(eval, this,  kids);
    java.util.List<IMatchingResult> wrap = new ArrayList<IMatchingResult>(1);
    wrap.add(setMatcher);

    Result<IValue> ambCons = eval.getCurrentEnvt().getVariable("amb");
    return new NodePattern(eval, this, new LiteralPattern(eval, this,  ambCons.getValue()), null, Factory.Tree_Amb, wrap, Collections.<String,IMatchingResult>emptyMap());
  }
View Full Code Here

      return makeResult(Factory.Tree, node, eval);
    }

    @Override
    public IMatchingResult buildMatcher(IEvaluatorContext eval) {
      return new LiteralPattern(eval, this,  node);
    }
View Full Code Here

      return makeResult(Factory.Tree, VF.constructor(Factory.Tree_Cycle, node, VF.integer(length)), eval);
    }

    @Override
    public IMatchingResult buildMatcher(IEvaluatorContext eval) {
      return new LiteralPattern(eval, this, VF.constructor(Factory.Tree_Cycle, node, VF.integer(length)));
    }
View Full Code Here

      super(__param1, __param2);
    }

    @Override
    public IMatchingResult buildMatcher(IEvaluatorContext eval) {
      return new LiteralPattern(eval, this, interpret(eval.getEvaluator()).getValue());
    }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.matching.LiteralPattern

Copyright © 2018 www.massapicom. 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.