コード例 #1
0
 /* (non-Javadoc)
  * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.InstanceofExpression)
  */
 public boolean visit(InstanceofExpression node) {
   PTInstanceof inof = InstantiationFactory.eINSTANCE.createPTInstanceof();
   inof.setOperand(perform(node.getLeftOperand()));
   inof.setType(resolver.resolveType(node.getRightOperand()));
   expression = inof;
   return false;
 }
コード例 #2
0
 /*
  * @see ASTVisitor#visit(InstanceofExpression)
  */
 @Override
 public boolean visit(InstanceofExpression node) {
   node.getLeftOperand().accept(this);
   this.fBuffer.append(" instanceof "); // $NON-NLS-1$
   node.getRightOperand().accept(this);
   return false;
 }