Examples of AnnotationMemberDeclaration


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

  }

  @Override
  public AnnotationMemberDeclaration adapt(
      AnnotationTypeElementDeclarationContext context) {
    AnnotationMemberDeclaration annotationMemberDeclaration = null;

    AnnotationTypeElementRestContext annotationTypeElementRestContext = getChild(
        context, AnnotationTypeElementRestContext.class);
    if (annotationTypeElementRestContext != null) {
      TypeContext typeContext = getChild(annotationTypeElementRestContext,
View Full Code Here

Examples of japa.parser.ast.body.AnnotationMemberDeclaration

        return Boolean.TRUE;
    }

    public Boolean visit(AnnotationMemberDeclaration n1, Node arg) {
        AnnotationMemberDeclaration n2 = (AnnotationMemberDeclaration) arg;

        // javadoc are checked at CompilationUnit

        if (n1.getModifiers() != n2.getModifiers()) {
            return Boolean.FALSE;
        }

        if (!objEquals(n1.getName(), n2.getName())) {
            return Boolean.FALSE;
        }

        if (!nodesEquals(n1.getAnnotations(), n2.getAnnotations())) {
            return Boolean.FALSE;
        }

        if (!nodeEquals(n1.getDefaultValue(), n2.getDefaultValue())) {
            return Boolean.FALSE;
        }

        if (!nodeEquals(n1.getType(), n2.getType())) {
            return Boolean.FALSE;
        }

        return Boolean.TRUE;
    }
View Full Code Here

Examples of japa.parser.ast.body.AnnotationMemberDeclaration

                column = type.getBeginColumn();
            }
        }
        {
            if (true) {
                return new AnnotationMemberDeclaration(line, column, token.endLine, token.endColumn, popJavadoc(), modifier.modifiers, modifier.annotations, type, name, defaultVal);
            }
        }
        throw new Error("Missing return statement in function");
    }
View Full Code Here

Examples of japa.parser.ast.body.AnnotationMemberDeclaration

    List<AnnotationExpr> annotations = visit(_n.getAnnotations(), _arg);
    Type type_ = cloneNodes(_n.getType(), _arg);
    Expression defaultValue = cloneNodes(_n.getDefaultValue(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    AnnotationMemberDeclaration r = new AnnotationMemberDeclaration(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
         _n.getModifiers(), annotations, type_, _n.getName(), defaultValue
    );
    r.setComment(comment);
    return r;
  }
View Full Code Here

Examples of japa.parser.ast.body.AnnotationMemberDeclaration

    return Boolean.TRUE;
  }

  @Override public Boolean visit(final AnnotationMemberDeclaration n1, final Node arg) {
    final AnnotationMemberDeclaration n2 = (AnnotationMemberDeclaration) arg;

    // javadoc are checked at CompilationUnit

    if (n1.getModifiers() != n2.getModifiers()) {
      return Boolean.FALSE;
    }

    if (!objEquals(n1.getName(), n2.getName())) {
      return Boolean.FALSE;
    }

    if (!nodesEquals(n1.getAnnotations(), n2.getAnnotations())) {
      return Boolean.FALSE;
    }

    if (!nodeEquals(n1.getDefaultValue(), n2.getDefaultValue())) {
      return Boolean.FALSE;
    }

    if (!nodeEquals(n1.getType(), n2.getType())) {
      return Boolean.FALSE;
    }

    return Boolean.TRUE;
  }
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.