本文整理汇总了Java中org.walkmod.javalang.ast.expr.BooleanLiteralExpr类的典型用法代码示例。如果您正苦于以下问题:Java BooleanLiteralExpr类的具体用法?Java BooleanLiteralExpr怎么用?Java BooleanLiteralExpr使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BooleanLiteralExpr类属于org.walkmod.javalang.ast.expr包,在下文中一共展示了BooleanLiteralExpr类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
public void visit(BooleanLiteralExpr n, VisitorContext ctx) {
Object o = ctx.get(NODE_TO_COMPARE_KEY);
if (o != null && o instanceof BooleanLiteralExpr) {
BooleanLiteralExpr aux = (BooleanLiteralExpr) o;
boolean backup = isUpdated();
setIsUpdated(false);
if (n.getValue() == aux.getValue()) {
increaseUnmodifiedNodes(BooleanLiteralExpr.class);
} else {
applyUpdate(n, (Node) o);
increaseUpdatedNodes(BooleanLiteralExpr.class);
}
setIsUpdated(backup || isUpdated());
} else if (o != null) {
setIsUpdated(true);
applyUpdate(n, (Node) o);
}
}
示例2: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
public Boolean visit(BooleanLiteralExpr n1, Node arg) {
BooleanLiteralExpr n2 = (BooleanLiteralExpr) arg;
if (n1.getValue() != n2.getValue()) {
return Boolean.FALSE;
}
return Boolean.TRUE;
}
示例3: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
public void visit(BooleanLiteralExpr n, VisitorContext arg) {
if (preVisitor != null) {
preVisitor.visit(n, arg);
}
super.visit(n, arg);
if (postVisitor != null) {
postVisitor.visit(n, arg);
}
}
示例4: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
@Override
public void visit(BooleanLiteralExpr n, A arg) {
n.setSymbolData(new SymbolType("boolean"));
}
示例5: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
@Override
public Boolean visit(BooleanLiteralExpr n, Void arg) {
return n.getValue();
}
示例6: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
public R visit(BooleanLiteralExpr n, A arg) {
return null;
}
示例7: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
@Override
public Node visit(BooleanLiteralExpr _n, Object _arg) {
BooleanLiteralExpr r = new BooleanLiteralExpr(_n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(),
_n.getEndColumn(), _n.getValue());
return r;
}
示例8: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
public void visit(BooleanLiteralExpr n, Object arg) {
prepareComments(n);
printPreviousComments(n, arg);
printer.print(String.valueOf(n.getValue()));
}
示例9: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
public Node visit(BooleanLiteralExpr n, A arg) {
return n;
}
示例10: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
public void visit(BooleanLiteralExpr n, A arg) {}
示例11: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
public R visit(BooleanLiteralExpr n, A arg);
示例12: visit
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr; //导入依赖的package包/类
public void visit(BooleanLiteralExpr n, A arg);