Package org.rascalmpl.ast

Examples of org.rascalmpl.ast.Strategy


      if (subjectType.isConstructor()) {
        subjectType = subjectType.getAbstractDataType();
      }

      Strategy s = this.getStrategy();

      DIRECTION direction = DIRECTION.BottomUp;
      PROGRESS progress = PROGRESS.Continuing;
      FIXEDPOINT fixedpoint = FIXEDPOINT.No;

      if (s.isBottomUp()) {
        direction = DIRECTION.BottomUp;
      } else if (s.isBottomUpBreak()) {
        direction = DIRECTION.BottomUp;
        progress = PROGRESS.Breaking;
      } else if (s.isInnermost()) {
        direction = DIRECTION.BottomUp;
        fixedpoint = FIXEDPOINT.Yes;
      } else if (s.isTopDown()) {
        direction = DIRECTION.TopDown;
      } else if (s.isTopDownBreak()) {
        direction = DIRECTION.TopDown;
        progress = PROGRESS.Breaking;
      } else if (s.isOutermost()) {
        direction = DIRECTION.TopDown;
        fixedpoint = FIXEDPOINT.Yes;
      } else {
        throw new ImplementationError("Unknown strategy " + s);
      }
View Full Code Here

TOP

Related Classes of org.rascalmpl.ast.Strategy

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.