Examples of annotation()


Examples of com.asakusafw.utils.java.model.util.AttributeBuilder.annotation()

                                        .toExpression(),
                                "expression", Models.toLiteral(factory, entry.getProperty()))
                        .toAnnotations());
            }

            attributes.annotation(
                    t(KeyInfo.class),
                    "group", factory.newArrayInitializer(group),
                    "order", factory.newArrayInitializer(order));
        }
        return factory.newFormalParameterDeclaration(
View Full Code Here

Examples of com.asakusafw.utils.java.model.util.AttributeBuilder.annotation()

                    .field(property.getName())
                    .toExpression()));
            }
            AttributeBuilder attributes = new AttributeBuilder(factory);
            if (orderingInfo.isEmpty() == false) {
                attributes = attributes.annotation(
                        importer.toType(SuppressWarnings.class),
                        Models.toLiteral(factory, "deprecation"));
            }
            attributes.annotation(t(Override.class)).Public();
View Full Code Here

Examples of com.asakusafw.utils.java.model.util.AttributeBuilder.annotation()

            if (orderingInfo.isEmpty() == false) {
                attributes = attributes.annotation(
                        importer.toType(SuppressWarnings.class),
                        Models.toLiteral(factory, "deprecation"));
            }
            attributes.annotation(t(Override.class)).Public();

            return factory.newMethodDeclaration(
                    null,
                    attributes.toAttributes(),
                    t(void.class),
View Full Code Here

Examples of com.caucho.config.inject.BeanBuilder.annotation()

    // server/21q1
    if (isStartup()
        && ! _annotatedType.isAnnotationPresent(Stateful.class)
        && ! _annotatedType.isAnnotationPresent(Stateless.class)
        && ! _annotatedType.isAnnotationPresent(MessageDriven.class)) {
      builder.annotation(new StartupLiteral());
    }

    for (Annotation qualifier : _qualifierList) {
      builder.qualifier(qualifier);
    }
View Full Code Here

Examples of com.caucho.config.inject.BeanBuilder.annotation()

      builder.scope(_scope);
      // comp.setScope(_beanManager.getScopeContext(_scope));
    }
   
    if (Singleton.class == _scope) {
      builder.annotation(new StartupLiteral());
    }
   
    builder.annotation(_cdiManager.generateXmlCookie());

    if (_init != null)
View Full Code Here

Examples of com.caucho.config.inject.BeanBuilder.annotation()

   
    if (Singleton.class == _scope) {
      builder.annotation(new StartupLiteral());
    }
   
    builder.annotation(_cdiManager.generateXmlCookie());

    if (_init != null)
      builder.init(_init);

    _bean = builder.bean();
View Full Code Here

Examples of com.caucho.config.inject.BeanFactory.annotation()

    // server/21q1
    if (isStartup()
        && ! _annotatedType.isAnnotationPresent(Stateful.class)
        && ! _annotatedType.isAnnotationPresent(Stateless.class)
        && ! _annotatedType.isAnnotationPresent(MessageDriven.class)) {
      factory.annotation(new Startup() {
          public Class annotationType() { return Startup.class; }
        });
    }

    for (Annotation binding : _bindingList) {
View Full Code Here

Examples of com.dubture.doctrine.annotation.parser.antlr.AnnotationParser.annotation()

            parser.setErrorReporter(reporter);

            parser.setTreeAdaptor(new AnnotationCommonTreeAdaptor());
            AnnotationParser.annotation_return root;

            root = parser.annotation();

            AnnotationCommonTree tree = (AnnotationCommonTree) root.getTree();
            AnnotationNodeVisitor visitor = new AnnotationNodeVisitor();
            tree.accept(visitor);
View Full Code Here

Examples of com.pogofish.jadt.parser.ParserImpl.annotation()

        testAnnotation(_Tuple(NO_COMMENTS, _Annotation("foo", _Some(_ElementValuePairs(list(_AnnotationKeyValue("x", _AnnotationValueExpression(_LiteralExpression(_NullLiteral()))), _AnnotationKeyValue("y", _AnnotationValueAnnotation(_Annotation("bar", Optional.<AnnotationElement>_None())))))))), "@foo( x = null, y = @bar )");       
    }
   
    private void testAnnotation(Tuple<List<JavaComment>, Annotation> expected, String input) throws Exception {
        final ParserImpl p = parserImpl(input);
        final Tuple<List<JavaComment>, Annotation> ca = p.annotation(true);
        assertEquals("[]", p.errors().toString());
        assertEquals(expected.toString(), ca.toString());
    }
}
View Full Code Here

Examples of org.aspectj.internal.lang.annotation.ajcDeclareAnnotation.annotation()

        DeclareAnnotationImpl da = new DeclareAnnotationImpl(
            this,
            decAnn.kind(),
            decAnn.pattern(),
            targetAnnotation,
            decAnn.annotation()
            );
        decAs.add(da);
      }
    }
    if (getSupertype().isAspect()) {
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.