Package org.osmorc.manifest.lang.psi

Examples of org.osmorc.manifest.lang.psi.Directive


  public List<String> getReExportedBundles() {
    Header header = myManifestFile.getHeader(REQUIRE_BUNDLE);
    return header == null ? ContainerUtil.<String>emptyList() : ContainerUtil.mapNotNull(header.getHeaderValues(), new NullableFunction<HeaderValue, String>() {
             @Override
             public String fun(HeaderValue value) {
               Directive directive = ((Clause)value).getDirective(VISIBILITY_DIRECTIVE);
               return directive != null && VISIBILITY_REEXPORT.equals(directive.getValue()) ? value.getUnwrappedText() : null;
             }
           });
  }
View Full Code Here


    if (header == null) return false;

    for (HeaderValue value : header.getHeaderValues()) {
      String requireSpec = value.getUnwrappedText();
      // first check if the clause is set to re-export, if not, we can skip the more expensive checks
      Directive directive = ((Clause)value).getDirective(VISIBILITY_DIRECTIVE);
      if (directive == null) {
        continue; // skip to the next require
      }
      if (VISIBILITY_REEXPORT.equals(directive.getValue())) {
        // ok it's a re-export. Now check if the bundle would satisfy the dependency
        if (otherBundle.isRequiredBundle(requireSpec)) {
          return true;
        }
      }
View Full Code Here

TOP

Related Classes of org.osmorc.manifest.lang.psi.Directive

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.