Package com.bacoder.parser.java.api

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


    super(adapters);
  }

  @Override
  public AnnotationMethodDeclaration adapt(AnnotationMethodRestContext context) {
    AnnotationMethodDeclaration annotationMethodDeclaration = createNode(context);

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

    DefaultValueContext defaultValueContext = getChild(context, DefaultValueContext.class);
    if (defaultValueContext != null) {
      ElementValueContext elementValueContext =
          getChild(defaultValueContext, ElementValueContext.class);
      if (elementValueContext != null) {
        annotationMethodDeclaration.setDefaultValue(
            getAdapter(ElementValueAdapter.class).adapt(elementValueContext));
      }
    }

    return annotationMethodDeclaration;
View Full Code Here


        if (annotationMethodOrConstantRestContext != null) {
          AnnotationMethodRestContext annotationMethodRestContext = getChild(
              annotationMethodOrConstantRestContext,
              AnnotationMethodRestContext.class);
          if (annotationMethodRestContext != null) {
            AnnotationMethodDeclaration annotationMethodDeclaration = getAdapter(
                AnnotationMethodRestAdapter.class).adapt(
                annotationMethodRestContext);
            annotationMethodDeclaration.setType(type);
            annotationMemberDeclaration = annotationMethodDeclaration;
          }

          AnnotationConstantRestContext annotationConstantRestContext = getChild(
              annotationMethodOrConstantRestContext,
View Full Code Here

TOP

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

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.