Package fr.imag.adele.apam.declarations.references.resources

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


    }

    @Override
    public ResourceReference getRequiredResource() {
      String target = argumentType.get();
      return target != null && !target.equals(InstrumentedClass.UNKNOWN_TYPE)? new MessageReference(target) : new UnknownReference(new MessageReference(this.toString()));
    }
View Full Code Here


     * the component to perform this instrumentation
     */
    @Override
    public ResourceReference getProvidedResource() {
      MessageReference target = methodReturnType.get();
      return target != null ? target : new UnknownReference(new MessageReference(methodName));
    }
View Full Code Here

    return field;
  }

  public ResourceReference getType() {
    String target = fieldType.get();
    return target != null && !target.equals(InstrumentedClass.UNKNOWN_TYPE)? generateReference(target) : new UnknownReference(generateReference(this.toString()));
  }
View Full Code Here

      break;
    }

    if (attribute.equals(Decoder.UNDEFINED) && mandatory) {
      errorHandler.report(Severity.ERROR, "component name or resource must be specified in " + element.getName());
      return new UnknownReference(new ResourceReference(Decoder.UNDEFINED));
    }

    if (attribute.equals(Decoder.UNDEFINED) && !mandatory) {
      return null;
    }
View Full Code Here

      return parseResourceReference(inComponent, element, attribute, mandatory);
    }

    if (mandatory) {
      errorHandler.report(Severity.ERROR, "component name or resource must be specified in " + element.getName());
      return  new UnknownReference(new ResourceReference(Decoder.UNDEFINED));
    }

    return null;
  }
View Full Code Here

    }
   

    if (mandatory) {
      errorHandler.report(Severity.ERROR, "resource name must be specified in " + element.getName());
      return new UnknownReference(new ResourceReference(element.getName()));
    }

    return null;
  }
View Full Code Here

    String encodedReference = property(propertyName);

      if (encodedReference.startsWith("{"+ComponentParser.INTERFACE+"}")) {
        encodedReference = encodedReference.substring(("{"+ComponentParser.INTERFACE+"}").length());
        return (!encodedReference.isEmpty()) ? new InterfaceReference(encodedReference) : new UnknownReference(new InterfaceReference("unknown"));
      }
      else if (encodedReference.startsWith("{"+ComponentParser.MESSAGE+"}")) {
        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);
      }
View Full Code Here

        if (relationName.equals(CST.REL_COMPOSITE) || relationName.equals(CST.REL_COMPOTYPE) || relationName.equals(CST.REL_CONTAINS)) {
          /*
           * For relations that navigate the nested hierarchy of composites, we cannot know the actual types
           * at build-time, as this hierarchy is completely build at runtime. We simply stop navigation
           */
          target = new UnknownReference(new ResourceReference("<RUNTIME>"));
        }       
        else {
          /*
           * For relations that navigate the abstraction levels, we can navigate to more abstract levels, and
           * for more concrete levels we continue validating in the same context
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.declarations.references.resources.UnknownReference

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.