Examples of ReferenceType


Examples of org.aspectj.weaver.ReferenceType

  /**
   * Should be addOrReplace
   */
  public ReferenceType addClassFile(UnwovenClassFile classFile, boolean fromInpath) {
    addedClasses.add(classFile);
    ReferenceType type = world.addSourceObjectType(classFile.getJavaClass(), false).getResolvedTypeX();
    if (fromInpath) {
      type.setBinaryPath(classFile.getFilename());
    }
    return type;
  }
View Full Code Here

Examples of org.aspectj.weaver.ReferenceType

      // "BCELWeaver: processing class from input directory "+classFile);
      StringBuffer sb = new StringBuffer();
      sb.append(inPathDir.getAbsolutePath());
      sb.append("!");
      sb.append(filename);
      ReferenceType type = this.addClassFile(ucf, false);
      type.setBinaryPath(sb.toString());
    }
    fis.close();
    return ucf;
  }
View Full Code Here

Examples of org.aspectj.weaver.ReferenceType

        if (dump) {
          dumpUnchanged(classFile);
        }
        return null;
      }
      ReferenceType resolvedClassType = classType.getResolvedTypeX();

      if (world.isXmlConfigured() && world.getXmlConfiguration().excludesType(resolvedClassType)) {
        if (!world.getMessageHandler().isIgnoring(IMessage.INFO)) {
          world.getMessageHandler().handleMessage(
              MessageUtil.info("Type '" + resolvedClassType.getName()
                  + "' not woven due to exclusion via XML weaver exclude section"));

        }
        if (dump) {
          dumpUnchanged(classFile);
        }
        return null;
      }

      List<ShadowMunger> shadowMungers = fastMatch(shadowMungerList, resolvedClassType);
      List<ConcreteTypeMunger> typeMungers = classType.getResolvedTypeX().getInterTypeMungers();

      resolvedClassType.checkInterTypeMungers();

      // Decide if we need to do actual weaving for this class
      boolean mightNeedToWeave = shadowMungers.size() > 0 || typeMungers.size() > 0 || classType.isAspect()
          || world.getDeclareAnnotationOnMethods().size() > 0 || world.getDeclareAnnotationOnFields().size() > 0;

      // May need bridge methods if on 1.5 and something in our hierarchy is
      // affected by ITDs
      boolean mightNeedBridgeMethods = world.isInJava5Mode() && !classType.isInterface()
          && resolvedClassType.getInterTypeMungersIncludingSupers().size() > 0;

      LazyClassGen clazz = null;
      if (mightNeedToWeave || mightNeedBridgeMethods) {
        clazz = classType.getLazyClassGen();
        // System.err.println("got lazy gen: " + clazz + ", " +
View Full Code Here

Examples of org.aspectj.weaver.ReferenceType

    // }
    // }
    //
    if (annotated.hasAnnotation(annotationType)) {
      if (annotationType instanceof ReferenceType) {
        ReferenceType rt = (ReferenceType) annotationType;
        if (rt.getRetentionPolicy() != null && rt.getRetentionPolicy().equals("SOURCE")) {
          rt.getWorld().getMessageHandler().handleMessage(
              MessageUtil.warn(WeaverMessages.format(WeaverMessages.NO_MATCH_BECAUSE_SOURCE_RETENTION,
                  annotationType, annotated), getSourceLocation()));
          return FuzzyBoolean.NO;
        }
        ResolvedMember[] methods = rt.getDeclaredMethods();
        boolean found = false;
        for (int i = 0; i < methods.length && !found; i++) {
          if (methods[i].getReturnType().equals(formalType)) {
            found = true;
          }
View Full Code Here

Examples of org.auraframework.util.json.Json.Serialization.ReferenceType

    public void writeValue(Object value) throws IOException {
        JsonSerializer<Object> serializer = serializationContext.getSerializer(value);
        if (serializer == null) {
            throw new JsonSerializerNotFoundException(value);
        }
        ReferenceType rt = serializationContext.refSupport() ? serializer.getReferenceType(value) : ReferenceType.NONE;
        if (rt != ReferenceType.NONE) {
            Integer refId;
            if ((refId = getRefId(serializer.getReferenceScope(value), value)) != null) {
                // Output a simple reference
                writeMapBegin();
View Full Code Here

Examples of org.jclouds.trmk.vcloud_0_8.domain.ReferenceType

      super(orgVDCMap, defaultOrg, defaultVDC);
   }

   protected URI getEndpointOfResourceInVDC(Object org, Object vDC, Object resource,
         org.jclouds.trmk.vcloud_0_8.domain.VDC vDCObject) {
      ReferenceType resourceEntity = vDCObject.getResourceEntities().get(resource);
      if (resourceEntity == null)
         throw new NoSuchElementException("entity " + resource + " in vdc " + vDC + ", org " + org + " not found in "
               + vDCObject.getResourceEntities().keySet());
      return resourceEntity.getHref();
   }
View Full Code Here

Examples of org.jclouds.vcloud.domain.ReferenceType

      super(orgVDCMap, defaultOrg, defaultVDC);
   }

   protected URI getEndpointOfResourceInVDC(Object org, Object vDC, Object resource,
         org.jclouds.vcloud.domain.VDC vDCObject) {
      ReferenceType resourceEntity = vDCObject.getResourceEntities().get(resource);
      if (resourceEntity == null)
         throw new NoSuchElementException("entity " + resource + " in vdc " + vDC + ", org " + org + " not found in "
               + vDCObject.getResourceEntities().keySet());
      return resourceEntity.getHref();
   }
View Full Code Here

Examples of org.modeshape.jcr.cache.CachedNode.ReferenceType

        assert referenceType == PropertyType.REFERENCE || referenceType == PropertyType.WEAKREFERENCE;
        if (!this.isReferenceable()) {
            // This node is not referenceable, so it cannot have any references to it ...
            return JcrEmptyPropertyIterator.INSTANCE;
        }
        ReferenceType refType = referenceType == PropertyType.REFERENCE ? ReferenceType.STRONG : ReferenceType.WEAK;
        NodeIterator iter = referringNodes(refType);
        if (!iter.hasNext()) {
            return JcrEmptyPropertyIterator.INSTANCE;
        }
        // Use the identifier, not the UUID (since the getUUID() method just calls the getIdentifier() method) ...
View Full Code Here

Examples of org.opensaml.xml.encryption.ReferenceType

*/
public class ReferenceTypeMarshaller extends AbstractXMLEncryptionMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        ReferenceType rt = (ReferenceType) xmlObject;

        if (rt.getURI() != null) {
            domElement.setAttributeNS(null, ReferenceType.URI_ATTRIB_NAME, rt.getURI());
        } else {
            super.marshallAttributes(xmlObject, domElement);
        }
    }
View Full Code Here

Examples of org.picketlink.identity.federation.ws.wss.secext.ReferenceType

                    keyIdentifierType.setValueType(StaxParserUtil.getAttributeValue(valueTypeAttr));
                keyIdentifierType.setValue(StaxParserUtil.getElementText(xmlEventReader));
                securityTokenRef.addAny(keyIdentifierType);
            } else if (tag.equals(WSTrustConstants.WSSE.REFERENCE)) {
                startElement = StaxParserUtil.getNextStartElement(xmlEventReader);
                ReferenceType referenceType = new ReferenceType();

                Attribute valueTypeAttr = startElement.getAttributeByName(new QName(WSTrustConstants.VALUE_TYPE));
                if (valueTypeAttr != null) {
                    referenceType.setValueType(StaxParserUtil.getAttributeValue(valueTypeAttr));
                }

                Attribute uriAttr = startElement.getAttributeByName(new QName(WSTrustConstants.WSSE.URI));
                if (uriAttr != null) {
                    referenceType.setURI(StaxParserUtil.getAttributeValue(uriAttr));
                }
                securityTokenRef.addAny(referenceType);
            }
        }
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.