本文整理汇总了Java中com.github.javaparser.ast.body.AnnotationMemberDeclaration.getDefaultValue方法的典型用法代码示例。如果您正苦于以下问题:Java AnnotationMemberDeclaration.getDefaultValue方法的具体用法?Java AnnotationMemberDeclaration.getDefaultValue怎么用?Java AnnotationMemberDeclaration.getDefaultValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.github.javaparser.ast.body.AnnotationMemberDeclaration
的用法示例。
在下文中一共展示了AnnotationMemberDeclaration.getDefaultValue方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import com.github.javaparser.ast.body.AnnotationMemberDeclaration; //导入方法依赖的package包/类
@Override
public void visit(final AnnotationMemberDeclaration n, final Object arg) {
printer.printLn("AnnotationMemberDeclaration");
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(";");
}
示例2: visit
import com.github.javaparser.ast.body.AnnotationMemberDeclaration; //导入方法依赖的package包/类
@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(";");
}
示例3: visit
import com.github.javaparser.ast.body.AnnotationMemberDeclaration; //导入方法依赖的package包/类
@Override public void visit(final AnnotationMemberDeclaration n, final A arg) {
jw.write(n);
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);
}
}
示例4: visit
import com.github.javaparser.ast.body.AnnotationMemberDeclaration; //导入方法依赖的package包/类
@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;
}
示例5: visit
import com.github.javaparser.ast.body.AnnotationMemberDeclaration; //导入方法依赖的package包/类
@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(";");
}
示例6: visit
import com.github.javaparser.ast.body.AnnotationMemberDeclaration; //导入方法依赖的package包/类
@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);
}
}
示例7: visit
import com.github.javaparser.ast.body.AnnotationMemberDeclaration; //导入方法依赖的package包/类
@Override public void visit(final AnnotationMemberDeclaration n, final A arg) {
visitComment(n.getComment(), arg);
visitAnnotations(n, arg);
n.getType().accept(this, arg);
if (n.getDefaultValue() != null) {
n.getDefaultValue().accept(this, arg);
}
}
示例8: visit
import com.github.javaparser.ast.body.AnnotationMemberDeclaration; //导入方法依赖的package包/类
@Override public Node visit(final AnnotationMemberDeclaration n, final A arg) {
visitComment(n, 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;
}