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