本文整理汇总了Java中com.github.javaparser.ast.body.EmptyMemberDeclaration类的典型用法代码示例。如果您正苦于以下问题:Java EmptyMemberDeclaration类的具体用法?Java EmptyMemberDeclaration怎么用?Java EmptyMemberDeclaration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EmptyMemberDeclaration类属于com.github.javaparser.ast.body包,在下文中一共展示了EmptyMemberDeclaration类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override
public void visit(final EmptyMemberDeclaration n, final Object arg) {
printer.printLn("EmptyMemberDeclaration");
printJavaComment(n.getComment(), arg);
printJavadoc(n.getJavaDoc(), arg);
printer.print(";");
}
示例2: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override
public JCTree visit(final EmptyMemberDeclaration n, final Object arg) {
/* TODO - Check how to proceed here since an empty member should
* be represented by an empty list
if (n.getJavaDoc() != null) {
JCTree result = n.getJavaDoc().accept(this, arg);
}
return new AJCEmptyMemberDeclaration( make.EmptyMemberDeclaration( ), ( (n.getComment()!=null)?n.getComment().getContent():null ) );
*/
System.err.println("Assigning null at:" + Thread.currentThread().getStackTrace()[1].getLineNumber());
return null;
}
示例3: doMerge
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override public EmptyMemberDeclaration doMerge(EmptyMemberDeclaration first, EmptyMemberDeclaration second) {
EmptyMemberDeclaration emd = new EmptyMemberDeclaration();
emd.setJavaDoc(mergeSingle(first.getJavaDoc(),second.getJavaDoc()));
emd.setAnnotations(mergeCollections(first.getAnnotations(),second.getAnnotations()));
return emd;
}
示例4: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override
public R visit(final EmptyMemberDeclaration n, final A arg) {
if (n.getJavaDoc() != null) {
{
R result = n.getJavaDoc().accept(this, arg);
if (result != null) {
return result;
}
}
}
return null;
}
示例5: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override
public Node visit(EmptyMemberDeclaration _n, Object _arg) {
JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg);
Comment comment = cloneNodes(_n.getComment(), _arg);
EmptyMemberDeclaration r = new EmptyMemberDeclaration(
_n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn()
);
r.setComment(comment);
return r;
}
示例6: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override public void visit(final EmptyMemberDeclaration n, final A arg) {
jw.write(n);
visitComment(n.getComment(), arg);
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
}
示例7: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override
public Node visit(EmptyMemberDeclaration _n, Object _arg) {
Comment comment = cloneNodes(_n.getComment(), _arg);
EmptyMemberDeclaration r = new EmptyMemberDeclaration(
_n.getRange()
);
r.setComment(comment);
return r;
}
示例8: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override
public Node visit(
EmptyMemberDeclaration n, Map<Node, Node> arg
) {
if (arg.containsKey(n)) {
return arg.get(n);
}
return super.visit(n, arg);
}
示例9: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override
public void visit(EmptyMemberDeclaration n, Script arg) {
}
示例10: doIsEquals
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override public boolean doIsEquals(EmptyMemberDeclaration first, EmptyMemberDeclaration second) {
return true;
}
示例11: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override public Boolean visit(final EmptyMemberDeclaration n1, final Node arg) {
return Boolean.TRUE;
}
示例12: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override public void visit(final EmptyMemberDeclaration n, final Object arg) {
printJavaComment(n.getComment(), arg);
printJavadoc(n.getJavaDoc(), arg);
printer.print(";");
}
示例13: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override public void visit(final EmptyMemberDeclaration n, final A arg) {
visitComment(n.getComment(), arg);
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
}
示例14: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override public Node visit(final EmptyMemberDeclaration n, final A arg) {
if (n.getJavaDoc() != null) {
n.setJavaDoc((JavadocComment) n.getJavaDoc().accept(this, arg));
}
return n;
}
示例15: visit
import com.github.javaparser.ast.body.EmptyMemberDeclaration; //导入依赖的package包/类
@Override public Boolean visit(final EmptyMemberDeclaration n1, final Node arg) {
return true;
}