Examples of PackageReference


Examples of com.strobel.assembler.metadata.PackageReference

    }

    private PackageReference getCurrentPackageReference() {
        final AstNode node = nodeStack.peek();

        PackageReference pkg = node.getUserData(Keys.PACKAGE_REFERENCE);

        if (pkg == null &&
            node.getParent() instanceof ImportDeclaration) {

            pkg = node.getParent().getUserData(Keys.PACKAGE_REFERENCE);
View Full Code Here

Examples of com.strobel.assembler.metadata.PackageReference

    }

    private PackageReference getCurrentPackageReference() {
        final AstNode node = nodeStack.peek();

        PackageReference pkg = node.getUserData(Keys.PACKAGE_REFERENCE);

        if (pkg == null &&
            node.getParent() instanceof ImportDeclaration) {

            pkg = node.getParent().getUserData(Keys.PACKAGE_REFERENCE);
View Full Code Here

Examples of fr.imag.adele.apam.declarations.references.resources.PackageReference

        "Export-Pack1");

    Instance inst = implementation.createInstance(null,
        Collections.<String, String> emptyMap());
   
    PackageReference ref = new PackageReference(exported);
       
    Assert.assertNotNull("Implementation should provide resources (the package)", implementation.getProvidedResources());
    Assert.assertTrue("Implementation should provides "+exported,implementation.getProvidedResources().contains(ref));

    Assert.assertNotNull("Instance should provide resources (the package is inherited)", inst.getProvidedResources());
View Full Code Here

Examples of fr.imag.adele.apam.declarations.references.resources.PackageReference

        "Relation-Pack1");

    Instance inst = implementation.createInstance(null,
        Collections.<String, String> emptyMap());
   
    PackageReference ref = new PackageReference(exported);
   
    ClientClass client = (ClientClass)inst.getServiceObject();
    System.err.println(client.service());
    auxListInstances();
       
View Full Code Here

Examples of fr.imag.adele.apam.declarations.references.resources.PackageReference

  /**
   * Get a package reference coded in an attribute
   */
  private PackageReference parsePackageReference(String inComponent, Element element, String attribute, boolean mandatory) {
    String packageName = parseString(inComponent, element, attribute, mandatory);
    return ((packageName == null) && !mandatory) ? null : new PackageReference(packageName);
 
View Full Code Here

Examples of fr.imag.adele.apam.declarations.references.resources.PackageReference

    for (String message : list(messages,true)) {
      component.getProvidedResources().add(new MessageReference(message));
    }
   
    for (String reqpackage : list(packages,true)) {
      component.getProvidedResources().add(new PackageReference(reqpackage));
    }   

  }
View Full Code Here

Examples of fr.imag.adele.apam.declarations.references.resources.PackageReference

        encodedReference = encodedReference.substring(("{"+ComponentParser.MESSAGE+"}").length());
        return (!encodedReference.isEmpty()) ? new MessageReference(encodedReference) : new UnknownReference(new MessageReference("unknown"));
      }
      else if (encodedReference.startsWith("{"+ComponentParser.PACKAGE+"}")) {
        encodedReference = encodedReference.substring(("{"+ComponentParser.PACKAGE+"}").length());
        return new PackageReference(encodedReference);
      }
      else {
        return new ComponentReference<ComponentDeclaration>(encodedReference);
      }
  }
View Full Code Here

Examples of ro.redeul.google.go.lang.psi.resolve.refs.PackageReference

            return references.toArray(new PsiReference[references.size()]);
        }

        if (VarOrConstReference.MATCHER.accepts(this))
            return new PsiReference[]{new VarOrConstReference(this), new PackageReference(this)};

        if (psiElement(GoLiteralIdentifier.class).insideStarting(psiElement(GoPsiTypeName.class)).accepts(this))
            return new PsiReference[]{new PackageReference(this)};

        return PsiReference.EMPTY_ARRAY;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.