Package org.rascalmpl.interpreter.result

Examples of org.rascalmpl.interpreter.result.ResourceResult


  public IValue getTypedResource(ISourceLocation uriLoc, IValue type, IEvaluatorContext ctx) {
    // TODO: We may not need this here, since we already create the same type internally
    // when we create the resource. Commenting out for now...
    Type resourceType = ((ReifiedType) type.getType()).getTypeParameters().getFieldType(0);
    IResource handler = Resource.getResourceHandler(uriLoc);
    ResourceResult rr = handler.createResource(ctx, uriLoc, resourceType);
    return rr.getValue();
  }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.result.ResourceResult

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.