本文整理匯總了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);