1 46 package org.codehaus.groovy.ast.stmt; 47 48 import org.codehaus.groovy.ast.GroovyCodeVisitor; 49 50 51 57 public class CatchStatement extends Statement { 58 59 private String exceptionType; 60 private String variable; 61 private Statement code; 62 63 public CatchStatement(String exceptionType, String variable, Statement code) { 64 this.exceptionType = exceptionType; 65 this.variable = variable; 66 this.code = code; 67 } 68 69 public void visit(GroovyCodeVisitor visitor) { 70 code.visit(visitor); 71 } 72 73 public Statement getCode() { 74 return code; 75 } 76 77 public String getExceptionType() { 78 return exceptionType; 79 } 80 81 public String getVariable() { 82 return variable; 83 } 84 } 85 | Popular Tags |