Codota Logo
AnnotationMemberDeclaration
Code IndexAdd Codota to your IDE (free)

How to use
AnnotationMemberDeclaration
in
japa.parser.ast.body

Best Java code snippets using japa.parser.ast.body.AnnotationMemberDeclaration (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: com.google.code.javaparser/javaparser

@Override
public Node visit(AnnotationMemberDeclaration _n, Object _arg) {
  JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg);
  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;
}
origin: com.google.code.javaparser/javaparser

@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;
}
origin: com.google.code.javaparser/javaparser

@Override public void visit(final AnnotationMemberDeclaration n, final A arg) {
  visitComment(n.getComment(), arg);
  if (n.getJavaDoc() != null) {
    n.getJavaDoc().accept(this, arg);
  }
  if (n.getAnnotations() != null) {
    for (final AnnotationExpr a : n.getAnnotations()) {
      a.accept(this, arg);
    }
  }
  n.getType().accept(this, arg);
  if (n.getDefaultValue() != null) {
    n.getDefaultValue().accept(this, arg);
  }
}
origin: com.google.code.javaparser/javaparser

@Override public Node visit(final AnnotationMemberDeclaration n, final A arg) {
  if (n.getJavaDoc() != null) {
    n.setJavaDoc((JavadocComment) n.getJavaDoc().accept(this, arg));
  }
  final List<AnnotationExpr> annotations = n.getAnnotations();
  if (annotations != null) {
    for (int i = 0; i < annotations.size(); i++) {
      annotations.set(i, (AnnotationExpr) annotations.get(i).accept(this, arg));
    }
    removeNulls(annotations);
  }
  n.setType((Type) n.getType().accept(this, arg));
  if (n.getDefaultValue() != null) {
    n.setDefaultValue((Expression) n.getDefaultValue().accept(this, arg));
  }
  return n;
}
origin: org.wikbook/wikbook.codesource

@Override
public Void visit(AnnotationMemberDeclaration n, Visit v)
{
 SignedMemberSource memberSource = new SignedMemberSource(
   MemberKey.createSignedKey(n.getName()),
   clip(n),
   v.javaDoc(n));
 //
 ((Visit.TD)v).stack.getLast().addLast(memberSource);
 return super.visit(n, v);
}
origin: com.google.code.javaparser/javaparser

final public AnnotationMemberDeclaration AnnotationTypeMemberDeclaration(Modifier modifier) throws ParseException {
   Type type;
   String name;
   Expression defaultVal = null;
 type = Type();
 jj_consume_token(IDENTIFIER);
               name = token.image;
 jj_consume_token(LPAREN);
 jj_consume_token(RPAREN);
 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
 case _DEFAULT:
  defaultVal = DefaultValue();
  break;
 default:
  jj_la1[135] = jj_gen;
  ;
 }
 jj_consume_token(SEMICOLON);
 int line = modifier.beginLine;
 int column = modifier.beginColumn;
 { if (line == -1) {line=type.getBeginLine(); column=type.getBeginColumn();} }
 AnnotationMemberDeclaration tmp = new AnnotationMemberDeclaration(line, column, token.endLine, token.endColumn, modifier.modifiers, modifier.annotations, type, name, defaultVal);
 {if (true) return tmp;}
 throw new Error("Missing return statement in function");
}
origin: org.chromattic/chromattic.testgenerator

public void visit(AnnotationMemberDeclaration n, Object arg) {
  printJavadoc(n.getJavaDoc(), arg);
  printMemberAnnotations(n.getAnnotations(), arg);
  printModifiers(n.getModifiers());
  n.getType().accept(this, arg);
  printer.print(" ");
  printer.print(n.getName());
  printer.print("()");
  if (n.getDefaultValue() != null) {
    printer.print(" default ");
    n.getDefaultValue().accept(this, arg);
  }
  printer.print(";");
}
origin: com.google.code.javaparser/javaparser

@Override
public R visit(final AnnotationMemberDeclaration n, final A arg) {
  if (n.getJavaDoc() != null) {
      R result = n.getJavaDoc().accept(this, arg);
      if (result != null) {
        return result;
  if (n.getAnnotations() != null) {
    for (final AnnotationExpr a : n.getAnnotations()) {
    R result = n.getType().accept(this, arg);
    if (result != null) {
      return result;
  if (n.getDefaultValue() != null) {
      R result = n.getDefaultValue().accept(this, arg);
      if (result != null) {
        return result;
origin: org.chromattic/chromattic.testgenerator

final public AnnotationMemberDeclaration AnnotationTypeMemberDeclaration(Modifier modifier) throws ParseException {
   Type type;
   String name;
   Expression defaultVal = null;
 type = Type();
 jj_consume_token(IDENTIFIER);
               name = token.image;
 jj_consume_token(LPAREN);
 jj_consume_token(RPAREN);
 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
 case _DEFAULT:
  defaultVal = DefaultValue();
  break;
 default:
  jj_la1[133] = jj_gen;
  ;
 }
 jj_consume_token(SEMICOLON);
 int line = modifier.beginLine;
 int column = modifier.beginColumn;
 { if (line == -1) {line=type.getBeginLine(); 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");
}
origin: com.google.code.javaparser/javaparser

@Override public void visit(final AnnotationMemberDeclaration n, final Object arg) {
  printJavaComment(n.getComment(), arg);
  printJavadoc(n.getJavaDoc(), arg);
  printMemberAnnotations(n.getAnnotations(), arg);
  printModifiers(n.getModifiers());
  n.getType().accept(this, arg);
  printer.print(" ");
  printer.print(n.getName());
  printer.print("()");
  if (n.getDefaultValue() != null) {
    printer.print(" default ");
    n.getDefaultValue().accept(this, arg);
  }
  printer.print(";");
}
japa.parser.ast.bodyAnnotationMemberDeclaration

Most used methods

  • getName
  • <init>
  • getAnnotations
  • getDefaultValue
  • getJavaDoc
  • getModifiers
    Return the modifiers of this member declaration.
  • getType
  • getBeginColumn
  • getBeginLine
  • getComment
  • getEndColumn
  • getEndLine
  • getEndColumn,
  • getEndLine,
  • setAsParentNodeOf,
  • setComment,
  • setDefaultValue,
  • setJavaDoc,
  • setModifiers,
  • setName,
  • setType

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getSharedPreferences (Context)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now