Package org.renjin.primitives.packaging

Examples of org.renjin.primitives.packaging.FqPackageName


  private JarFile jarFile;
  private Artifact artifact;

  public AetherPackage(Artifact artifact) throws IOException {
    super(new FqPackageName(artifact.getGroupId(), artifact.getArtifactId()));
    this.artifact = artifact;
    this.jarFile = new JarFile(artifact.getFile());
  }
View Full Code Here


    } else if(packageName.equals("methods")) {
      return Methods.class;
    } else if(packageName.equals("grDevices")) {
      return Graphics.class;
    } else {
      FqPackageName fqname = context.getNamespaceRegistry().getNamespace(packageName).getFullyQualifiedName();
      String packageClassName = fqname.getGroupId()+"."+fqname.getPackageName() + "." +
                                fqname.getPackageName();
      try {
        return Class.forName(packageClassName);
      } catch (ClassNotFoundException e) {
        throw new EvalException("Could not find class for 'native' methods for package '%s' (className='%s')",
            packageName, packageClassName);
View Full Code Here

    // fail to load in GNU R.

    // if we get to the point of needing to exchange ASTs between Renjin and R then we can always
    // provide an alternate implementation of the WriteContext interface

    FqPackageName packageName = session.getNamespaceRegistry().getNamespace(ns).getFullyQualifiedName();
    if(packageName.getGroupId().equals(FqPackageName.CORE_GROUP_ID)) {
      return packageName.getPackageName();

    } else {
      return packageName.toString(':');
    }
  }
View Full Code Here

  private List<String> defaultPackages;

  public void build(String groupId, String namespaceName, File sourceDirectory,
      File environmentFile, List<String> defaultPackages) throws IOException {

    this.name = new FqPackageName(groupId, namespaceName);
    this.sourceDirectory = sourceDirectory;
    this.environmentFile = environmentFile;
    this.defaultPackages = defaultPackages;

    compileNamespaceEnvironment();
View Full Code Here

TOP

Related Classes of org.renjin.primitives.packaging.FqPackageName

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.