コード例 #1
0
 /* (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;
 }
コード例 #2
0
 /*
  * @see ASTVisitor#visit(CastExpression)
  */
 @Override
 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;
 }
コード例 #3
0
 private Class<?> jitCastExpression(CastExpression exp) {
   jitExpression(exp.expression, Object.class);
   cast(exp.getType());
   return exp.getType();
 }