/*
  * @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;
 }
 /* (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;
 }
Ejemplo n.º 3
0
 @Override
 public void endVisit(BooleanLiteral node) {
   expressions.push(new VMBooleanLiteral(node, node.booleanValue()));
 }