1 46 package org.codehaus.groovy.ast.expr; 47 48 import org.codehaus.groovy.ast.GroovyCodeVisitor; 49 import org.codehaus.groovy.classgen.AsmClassGenerator2; 50 51 57 public class BooleanExpression extends Expression { 58 private Expression expression; 59 60 public BooleanExpression(Expression expression) { 61 this.expression = expression; 62 setTypeClass(boolean.class); } 64 65 public Expression getExpression() { 66 return expression; 67 } 68 69 public void visit(GroovyCodeVisitor visitor) { 70 visitor.visitBooleanExpression(this); 71 } 72 73 public Expression transformExpression(ExpressionTransformer transformer) { 74 return new BooleanExpression(transformer.transform(expression)); 75 } 76 77 public String getText() { 78 return expression.getText(); 79 } 80 81 protected void resolveType(AsmClassGenerator2 resolver) { 82 } 84 } 85 | Popular Tags |