Package com.sun.mirror.apt

Examples of com.sun.mirror.apt.AnnotationProcessor


     *         otherwise, returns the NO_OP annotation processor.
     */
    public AnnotationProcessor getProcessorFor(
            Set<AnnotationTypeDeclaration> declarations,
            AnnotationProcessorEnvironment env) {
        AnnotationProcessor result;
        if (declarations.isEmpty()) {
            result = AnnotationProcessors.NO_OP;
        } else {
            result = new TagAnnotationProcessor(env);
        }
View Full Code Here


      return Collections.singletonList("org.jboss.portal.unit.annotations.TestCase");
   }

   public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> annotationTypeDeclarations, AnnotationProcessorEnvironment annotationProcessorEnvironment)
   {
      AnnotationProcessor result;
      if(annotationTypeDeclarations.isEmpty()) {
         result = AnnotationProcessors.NO_OP;
      }
      else {
         // Next Step - implement this class:
View Full Code Here

    public Collection<String> supportedAnnotationTypes() {
        return Collections.singletonList("org.glassfish.enterprise.ha.store.annotations.StoreEntry");
    }

    public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> decls, AnnotationProcessorEnvironment annEnv) {
        AnnotationProcessor ap = null;
        if (decls.isEmpty()) {
            ap = AnnotationProcessors.NO_OP;
        } else {
            ap = new StoreEntryAnnotationProcessor(decls, annEnv);
        }
View Full Code Here

    public Collection<String> supportedAnnotationTypes() {
        return Arrays.asList("*");
    }

    public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> atds, final AnnotationProcessorEnvironment env) {
        return new AnnotationProcessor() {
            final ErrorReceiverImpl errorListener = new ErrorReceiverImpl(env);

            public void process() {
                List<Reference> decls = new ArrayList<Reference>();
                for(TypeDeclaration d : env.getTypeDeclarations()) {
View Full Code Here

    public Collection<String> supportedAnnotationTypes() {
        return Arrays.asList("*");
    }

    public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> atds, final AnnotationProcessorEnvironment env) {
        return new AnnotationProcessor() {
            final ErrorReceiverImpl errorListener = new ErrorReceiverImpl(env);

            public void process() {
                List<Reference> decls = new ArrayList<Reference>();
                for(TypeDeclaration d : env.getTypeDeclarations()) {
View Full Code Here

        throw new IllegalStateException( "Has still been called!" );
      }
      result = new Result( env );
      TypeUtils.setTypes( env.getTypeUtils() );

      return new AnnotationProcessor() {
        @Override
        public void process() {
          for ( TypeDeclaration typeDeclaration : env.getTypeDeclarations() ) {
            //We are just interested in classes
            if ( typeDeclaration instanceof ClassDeclaration ) {
View Full Code Here

    public Collection<String> supportedAnnotationTypes() {
        return Arrays.asList(Option.class.getName(),Argument.class.getName());
    }

    public AnnotationProcessor getProcessorFor(final Set<AnnotationTypeDeclaration> annotationTypeDeclarations, final AnnotationProcessorEnvironment env) {
        return new AnnotationProcessor() {
            public void process() {
                Collection<Declaration> params = env.getDeclarationsAnnotatedWith((AnnotationTypeDeclaration)env.getTypeDeclaration(Option.class.getName()));

                final Set<TypeDeclaration> optionBeans = new HashSet<TypeDeclaration>();
                for (Declaration d : params) {
View Full Code Here

        throw new IllegalStateException( "Has still been called!" );
      }
      result = new Result( env );
      TypeUtils.setTypes( env.getTypeUtils() );

      return new AnnotationProcessor() {
        @Override
        public void process() {
          for ( TypeDeclaration typeDeclaration : env.getTypeDeclarations() ) {
            //We are just interested in classes
            if ( typeDeclaration instanceof ClassDeclaration ) {
View Full Code Here

  /**
   * @inheritDoc
   */
  public AnnotationProcessor getProcessorFor(final Set<AnnotationTypeDeclaration> theDeclarations,
                         final AnnotationProcessorEnvironment theEnvironment) {
    AnnotationProcessor aProcessor;

    if (theDeclarations.isEmpty()) {
      aProcessor = AnnotationProcessors.NO_OP;
    }
    else {
View Full Code Here

    public Collection<String> supportedAnnotationTypes() {
        return Arrays.asList(Option.class.getName(),Argument.class.getName());
    }

    public AnnotationProcessor getProcessorFor(final Set<AnnotationTypeDeclaration> annotationTypeDeclarations, final AnnotationProcessorEnvironment env) {
        return new AnnotationProcessor() {
            public void process() {
                Collection<Declaration> params = env.getDeclarationsAnnotatedWith((AnnotationTypeDeclaration)env.getTypeDeclaration(Option.class.getName()));

                final Set<TypeDeclaration> optionBeans = new HashSet<TypeDeclaration>();
                for (Declaration d : params) {
View Full Code Here

TOP

Related Classes of com.sun.mirror.apt.AnnotationProcessor

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.