Package com.bacoder.parser.java.api

Examples of com.bacoder.parser.java.api.AnnotationDeclaration


    super(adapters);
  }

  @Override
  public AnnotationDeclaration adapt(AnnotationTypeDeclarationContext context) {
    AnnotationDeclaration annotationDeclaration = createNode(context);

    TerminalNode identifierNode = getTerminalNode(context, JavaParser.Identifier);
    if (identifierNode != null) {
      annotationDeclaration.setName(getAdapter(IdentifierAdapter.class).adapt(identifierNode));
    }

    AnnotationTypeBodyContext annotationTypeBodyContext =
        getChild(context, AnnotationTypeBodyContext.class);
    if (annotationTypeBodyContext != null) {
      annotationDeclaration.setMemberDeclarations(transform(annotationTypeBodyContext,
          AnnotationTypeElementDeclarationContext.class,
          new Function<AnnotationTypeElementDeclarationContext, AnnotationMemberDeclaration>() {
            @Override
            public AnnotationMemberDeclaration apply(
                AnnotationTypeElementDeclarationContext context) {
View Full Code Here


    }

    AnnotationTypeDeclarationContext annotationTypeDeclarationContext =
        getChild(context, AnnotationTypeDeclarationContext.class);
    if (annotationTypeDeclarationContext != null) {
      AnnotationDeclaration annotationDeclaration =
          getAdapter(AnnotationTypeDeclarationAdapter.class).adapt(
              annotationTypeDeclarationContext);
      setClassOrInterfaceModifiers(context, annotationDeclaration);
      return annotationDeclaration;
    }
View Full Code Here

TOP

Related Classes of com.bacoder.parser.java.api.AnnotationDeclaration

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.