Note that bindings are generally unavailable unless requested when the AST is being built.
null
609610611612613614615616617618619
hardDep(tb2); print(CName.relative(tb2, type, true) + "::valueOf("); visits.add(new NodeInfo(node, ")")); } else if (expr.resolveUnboxing()) { ITypeBinding tb = expr.resolveTypeBinding().getErasure(); if (TransformUtil.reverses.containsKey(tb .getQualifiedName())) { hardDep(tb); print("("); npc();
898899900901902903904905906907908
} @Override public boolean visit(Assignment node) { Expression lhs = node.getLeftHandSide(); ITypeBinding ltb = lhs.resolveTypeBinding(); Expression rhs = node.getRightHandSide(); ITypeBinding rtb = rhs.resolveTypeBinding(); hardDep(rtb);
900901902903904905906907908909910
@Override public boolean visit(Assignment node) { Expression lhs = node.getLeftHandSide(); ITypeBinding ltb = lhs.resolveTypeBinding(); Expression rhs = node.getRightHandSide(); ITypeBinding rtb = rhs.resolveTypeBinding(); hardDep(rtb); if (TransformUtil.same(ltb, String.class) && node.getOperator() == Operator.PLUS_ASSIGN) {
12611262126312641265126612671268126912701271
} @Override public boolean visit(EnhancedForStatement node) { Expression expr = node.getExpression(); ITypeBinding eb = expr.resolveTypeBinding(); hardDep(eb); deps.setNpc(); if (eb.isArray()) { printi("for(auto "); node.getParameter().getName().accept(this);
13661367136813691370137113721373137413751376
boolean hidden = false; if (cast) { javaCast(tbe, tb); } else { hidden = hidden(expr.resolveTypeBinding(), vb); } if (hidden) { staticCast(tbe, vb.getDeclaringClass()); }
13741375137613771378137913801381138213831384
if (hidden) { staticCast(tbe, vb.getDeclaringClass()); } npcAccept(expr); hardDep(expr.resolveTypeBinding()); if (hidden) { print(")"); }
15351536153715381539154015411542154315441545
ITypeBinding tb = node.resolveTypeBinding(); Expression left = node.getLeftOperand(); Expression right = node.getRightOperand(); ITypeBinding lt = left.resolveTypeBinding(); ITypeBinding rt = right.resolveTypeBinding(); if (TransformUtil.same(tb, String.class)) { print("::java::lang::StringBuilder().append("); castNull(left);
18861887188818891890189118921893189418951896
} } Expression expr = node.getExpression(); if (expr != null) { ITypeBinding etb = expr.resolveTypeBinding().getErasure(); boolean isType = expr instanceof Name && ((Name) expr).resolveBinding() instanceof ITypeBinding; int parens = 0;
42544255425642574258425942604261426242634264
push(new LocalVariableCreation(node.getName().getIdentifier(), getTypeSignature(elementBinding), typeDimension, elementBinding.isPrimitive(), initializer != null, fCounter)); if (initializer != null) { initializer.accept(this); ITypeBinding expBindnig = initializer.resolveTypeBinding(); if (expBindnig != null) { if (checkAutoBoxing(expBindnig, varTypeBinding)) { storeInstruction(); } }
30173018301930203021302230233024302530263027
Iterator<Expression> iterator = arguments.iterator(); // process the first arguments (no part of the variable argument) for (int i = 0; i < paramCount - 1; i++) { Expression argument = iterator.next(); boolean storeRequired = checkAutoBoxing( argument.resolveTypeBinding(), parameterTypes[i]); argument.accept(this); if (storeRequired) { storeInstruction(); } }