Package org.rascalmpl.interpreter.matching

Examples of org.rascalmpl.interpreter.matching.NodePattern$TreeAsNode


    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


        if (cachedConstructorType == null) {
          registerTypeCacheHandler(eval);
          cachedConstructorType  = computeConstructorType(eval, nameExpr);
        }
        
        return new NodePattern(eval, this, null, nameExpr.getQualifiedName(), cachedConstructorType, visitArguments(eval), visitKeywordArguments(eval));
      }

      return new NodePattern(eval, this, nameExpr.buildMatcher(eval), null, TF.nodeType(), visitArguments(eval), visitKeywordArguments(eval));
    }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.matching.NodePattern$TreeAsNode

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.