Examples of AnnotationType


Examples of com.sun.mirror.type.AnnotationType

        }
      }

      Collection<AnnotationMirror> annotationMirrors = declaration.getAnnotationMirrors();
      for (AnnotationMirror annotationMirror : annotationMirrors) {
        AnnotationType annotationType = annotationMirror.getAnnotationType();
        if (annotationType != null) {
          AnnotationTypeDeclaration annotationDeclaration = annotationType.getDeclaration();
          facet = annotationDeclaration.getAnnotation(org.codehaus.enunciate.Facet.class);
          if (facet != null) {
            bucket.add(new Facet(facet, annotationDeclaration.getSimpleName()));
          }
          facets = annotationDeclaration.getAnnotation(Facets.class);
View Full Code Here

Examples of com.sun.mirror.type.AnnotationType

   * @return Whether the specified member declaration is explicitly declared to be an accessor.
   */
  protected boolean explicitlyDeclaredAccessor(MemberDeclaration declaration) {
    Collection<AnnotationMirror> annotationMirrors = declaration.getAnnotationMirrors();
    for (AnnotationMirror annotationMirror : annotationMirrors) {
      AnnotationType annotationType = annotationMirror.getAnnotationType();
      if (annotationType != null) {
        AnnotationTypeDeclaration annotationDeclaration = annotationType.getDeclaration();
        if ((annotationDeclaration != null) && (annotationDeclaration.getQualifiedName().startsWith(XmlElement.class.getPackage().getName()))) {
          //if it's annotated with anything in javax.xml.bind.annotation, (exception XmlTransient) we'll consider it to be "explicitly annotated."
          return !annotationDeclaration.getQualifiedName().equals(XmlTransient.class.getName());
        }
      }
View Full Code Here

Examples of com.sun.mirror.type.AnnotationType

    //it's a JAX-RS resource if any method has either a @Path or a resource method designator.
    Collection<? extends MethodDeclaration> methods = declaration.getMethods();
    for (MethodDeclaration method : methods) {
      for (AnnotationMirror mirror : method.getAnnotationMirrors()) {
        AnnotationType type = mirror.getAnnotationType();
        if (type.getDeclaration() != null && type.getDeclaration().getAnnotation(HttpMethod.class) != null) {
          return true;
        }
      }
    }
View Full Code Here

Examples of org.apache.beehive.netui.compiler.typesystem.type.AnnotationType

            String tagName = tag.getName();
            AnnotationTypeDeclaration decl = _annotationInterfaceParser.getAnnotationTypeDecl(tagName);
           
            if ( decl != null )
            {
                AnnotationType type = new AnnotationTypeImpl( decl );
                Collection attrNames = tag.getAttributeNames();           
                HashMap elementValues = new HashMap();
               
                for ( Iterator j = attrNames.iterator(); j.hasNext(); )
                {
View Full Code Here

Examples of org.apache.beehive.netui.compiler.typesystem.type.AnnotationType

            XTag tag = ( XTag ) i.next();
            AnnotationTypeDeclaration decl = ( AnnotationTypeDeclaration ) ANNOTATIONS.get( tag.getName() );
           
            if ( decl != null )
            {
                AnnotationType type = new AnnotationTypeImpl( decl );
                Collection attrNames = tag.getAttributeNames();           
                HashMap elementValues = new HashMap();
               
                for ( Iterator j = attrNames.iterator(); j.hasNext(); )
                {
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.metadata.annotation.model.AnnotationType

    public class StereotypeBindingBuilder {
        private final AnnotationType m_annotationType;

        public StereotypeBindingBuilder(final List<Binding> bindings, final Class<? extends Annotation> type) {
            m_annotationType = new AnnotationType(Type.getType(type));
            Binding binding = new Binding();
            binding.setAnnotationType(m_annotationType.getType());
            binding.setPredicate(onlySupportedElements(type));
            binding.setFactory(new StereotypeVisitorFactory(m_annotationType));
            bindings.add(binding);
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.metadata.annotation.model.AnnotationType

                            "operations.",
                    type.getClassName());
            return emptyList();
        }
        AnnotationParser parser = new AnnotationParser();
        AnnotationType annotationType = parser.read(bytes);

        // Search meta-annotations
        ChainedAnnotationDiscovery chain = new ChainedAnnotationDiscovery();
        StereotypeDiscovery stereotypeDiscovery = new StereotypeDiscovery();
        HandlerBindingDiscovery handlerBindingDiscovery = new HandlerBindingDiscovery();
        IgnoredDiscovery ignoredDiscovery = new IgnoredDiscovery();
        chain.getDiscoveries().add(stereotypeDiscovery);
        chain.getDiscoveries().add(handlerBindingDiscovery);
        chain.getDiscoveries().add(ignoredDiscovery);

        annotationType.traverse(chain);

        // Produced Bindings
        List<Binding> bindings = new ArrayList<Binding>();

        // @Stereotype support
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.metadata.annotation.model.AnnotationType

        super(Opcodes.ASM5);
    }

    @Override
    public void visit(final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces) {
        annotationType = new AnnotationType(Type.getObjectType(name));
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.AnnotationType

    public void processConceptPropertyBridgeCreate(OntClass subjectClass,
                                                   PropertyBridge propertyBridge,
                                                   DObject propertySubject,
                                                   MappingEngine engine) throws RepositoryAccessException {
        AnnotationType annotation = getAnnotation(propertyBridge.getPropertyAnnotation());
        String predicateName = propertyBridge.getPredicateName();

        for (DProperty prop : propertySubject.getProperties()) {
            DPropertyDefinition propDef = prop.getDefinition();
            // propDef returns null if a * named property comes
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.AnnotationType

            }
            String propName = propDef.getName();
            String propFullName = propDef.getNamespace() + ":" + propDef.getName();
            if (propName.equals(predicateName) || propName.contains(predicateName)
                || propFullName.equals(predicateName)) {
                AnnotationType annotation = getAnnotation(propertyBridge.getPropertyAnnotation());
                processContentObjectProperty(property, propDef, contentObject, individual, annotation, engine);
                // property found break the loop
                break;
            }
        }
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.