Package org.spoofax.terms

Examples of org.spoofax.terms.StrategoListIterator


   
    if (term.getTermType() == IStrategoTerm.LIST)
    {
      List<IStrategoTerm> l = new ArrayList<IStrategoTerm>();
     
      for (Iterator<IStrategoTerm> it = new StrategoListIterator((IStrategoList) term);
           it.hasNext(); )
        l.add(it.next());
     
      return l;
    }
   
    throw new MatchError(term, "list");
View Full Code Here

TOP

Related Classes of org.spoofax.terms.StrategoListIterator

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.