コード例 #1
0
 /*
  * @see ASTVisitor#visit(BooleanLiteral)
  */
 public boolean visit(BooleanLiteral node) {
   if (node.booleanValue() == true) {
     this.fBuffer.append("true"); // $NON-NLS-1$
   } else {
     this.fBuffer.append("false"); // $NON-NLS-1$
   }
   return false;
 }
コード例 #2
0
 /* (non-Javadoc)
  * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.BooleanLiteral)
  */
 public boolean visit(BooleanLiteral node) {
   PTBooleanLiteral bl = InstantiationFactory.eINSTANCE.createPTBooleanLiteral();
   bl.setBooleanValue(node.booleanValue());
   expression = bl;
   return false;
 }
コード例 #3
0
 @Override
 public void endVisit(BooleanLiteral node) {
   expressions.push(new VMBooleanLiteral(node, node.booleanValue()));
 }