Package org.rascalmpl.library.experiments.resource.results.buffers

Examples of org.rascalmpl.library.experiments.resource.results.buffers.LazyList


public class CharStreamResult extends ResourceResult {

  public CharStreamResult(Type type, IValue value, IEvaluatorContext ctx, ISourceLocation fullURI, String displayURI) {
    super(type, value, ctx, fullURI, displayURI);
    URI uri = FileURIResolver.constructFileURI(fullURI.getURI().getPath());
    this.value = new LazyList(80, new CharStreamFiller(ValueFactoryFactory.getValueFactory().sourceLocation(uri), ctx), type.getElementType());
  }
View Full Code Here


    super(type, value, ctx, fullURI, displayURI);
    String str = fullURI.getURI().getPath();
    String newHost = str.substring(1,str.indexOf("/",1));
    String newPath = str.substring(str.indexOf("/",1)+1);
    URI uri = URIUtil.assumeCorrect(newHost, "", newPath);
    this.value = new LazyList(25, new LineStreamFiller(ValueFactoryFactory.getValueFactory().sourceLocation(uri), ctx), type.getElementType());
  }
View Full Code Here

TOP

Related Classes of org.rascalmpl.library.experiments.resource.results.buffers.LazyList

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.