Package org.rascalmpl.interpreter.matching

Examples of org.rascalmpl.interpreter.matching.VariableBecomesPattern


    @Override
    public IMatchingResult buildMatcher(IEvaluatorContext eval) {
      Type type = getType().typeOf(eval.getCurrentEnvt(), true, eval.getEvaluator());
      IMatchingResult pat = this.getPattern().buildMatcher(eval);
      IMatchingResult var = new TypedVariablePattern(eval, this, type, this.getName());
      return new VariableBecomesPattern(eval, this, var, pat);

    }
View Full Code Here


    public IMatchingResult buildMatcher(IEvaluatorContext eval) {
      IMatchingResult pat = this.getPattern().buildMatcher(eval);
      LinkedList<Name> names = new LinkedList<Name>();
      names.add(this.getName());
      IMatchingResult var = new QualifiedNamePattern(eval, this, ASTBuilder.<org.rascalmpl.ast.QualifiedName> make("QualifiedName", "Default", this.getLocation(), names));
      return new VariableBecomesPattern(eval, this, var, pat);

    }
View Full Code Here

TOP

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

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.