/* * @see ASTVisitor#visit(CastExpression) */ public boolean visit(CastExpression node) { this.fBuffer.append("("); // $NON-NLS-1$ node.getType().accept(this); this.fBuffer.append(")"); // $NON-NLS-1$ node.getExpression().accept(this); return false; }
/* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.CastExpression) */ public boolean visit(CastExpression node) { PTCastExpression ct = InstantiationFactory.eINSTANCE.createPTCastExpression(); ct.setType(resolver.resolveType(node.getType())); ct.setExpression(perform(node.getExpression())); expression = ct; return false; }