001/* 002 * Copyright (c) 2012-2018 Institut National des Sciences Appliquées de Lyon (INSA Lyon) and others 003 * 004 * This program and the accompanying materials are made available under the 005 * terms of the Eclipse Public License 2.0 which is available at 006 * http://www.eclipse.org/legal/epl-2.0. 007 * 008 * SPDX-License-Identifier: EPL-2.0 009 */ 010 011package org.eclipse.golo.compiler.parser; 012 013public class ASTTryCatchFinally extends GoloASTNode { 014 015 private String exceptionId; 016 017 public ASTTryCatchFinally(int id) { 018 super(id); 019 } 020 021 public ASTTryCatchFinally(GoloParser p, int id) { 022 super(p, id); 023 } 024 025 @Override 026 public Object jjtAccept(GoloParserVisitor visitor, Object data) { 027 return visitor.visit(this, data); 028 } 029 030 public String getExceptionId() { 031 return exceptionId; 032 } 033 034 public void setExceptionId(String exceptionId) { 035 this.exceptionId = exceptionId; 036 } 037 038 @Override 039 public String toString() { 040 return String.format("ASTTryCatchFinally{exceptionId='%s'}", exceptionId); 041 } 042}