本文整理汇总了Java中com.github.javaparser.ast.body.InitializerDeclaration.isStatic方法的典型用法代码示例。如果您正苦于以下问题:Java InitializerDeclaration.isStatic方法的具体用法?Java InitializerDeclaration.isStatic怎么用?Java InitializerDeclaration.isStatic使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.github.javaparser.ast.body.InitializerDeclaration
的用法示例。
在下文中一共展示了InitializerDeclaration.isStatic方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import com.github.javaparser.ast.body.InitializerDeclaration; //导入方法依赖的package包/类
@Override
public void visit(final InitializerDeclaration n, final Object arg) {
printer.printLn("InitializerDeclaration");
printJavaComment(n.getComment(), arg);
printJavadoc(n.getJavaDoc(), arg);
if (n.isStatic()) {
printer.print("static ");
}
n.getBlock().accept(this, arg);
}
示例2: visit
import com.github.javaparser.ast.body.InitializerDeclaration; //导入方法依赖的package包/类
@Override
public Node visit(InitializerDeclaration _n, Object _arg) {
JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg);
BlockStmt block = cloneNodes(_n.getBlock(), _arg);
Comment comment = cloneNodes(_n.getComment(), _arg);
InitializerDeclaration r = new InitializerDeclaration(
_n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
_n.isStatic(), block
);
r.setComment(comment);
return r;
}
示例3: visit
import com.github.javaparser.ast.body.InitializerDeclaration; //导入方法依赖的package包/类
@Override public void visit(final InitializerDeclaration n, final Object arg) {
printJavaComment(n.getComment(), arg);
printJavadoc(n.getJavaDoc(), arg);
if (n.isStatic()) {
printer.print("static ");
}
n.getBlock().accept(this, arg);
}
示例4: visit
import com.github.javaparser.ast.body.InitializerDeclaration; //导入方法依赖的package包/类
@Override
public Node visit(InitializerDeclaration _n, Object _arg) {
BlockStmt block = cloneNodes(_n.getBlock(), _arg);
Comment comment = cloneNodes(_n.getComment(), _arg);
InitializerDeclaration r = new InitializerDeclaration(
_n.getRange(),
_n.isStatic(), block
);
r.setComment(comment);
return r;
}
示例5: visit
import com.github.javaparser.ast.body.InitializerDeclaration; //导入方法依赖的package包/类
@Override public void visit(final InitializerDeclaration n, final Object arg) {
printJavaComment(n.getComment(), arg);
printJavadoc(n.getJavaDoc(), arg);
if (n.isStatic()) {
printer.print("static ");
}
n.getBlock().accept(this, arg);
}
示例6: doIsEquals
import com.github.javaparser.ast.body.InitializerDeclaration; //导入方法依赖的package包/类
@Override public boolean doIsEquals(InitializerDeclaration first, InitializerDeclaration second) {
if(first.isStatic() != second.isStatic()) return false;
return false;
}