org.snapscript.tree.CatchBlock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
package org.snapscript.tree;
import org.snapscript.core.Statement;
import org.snapscript.tree.function.ParameterDeclaration;
public class CatchBlock {
private final ParameterDeclaration declaration;
private final Statement statement;
public CatchBlock(ParameterDeclaration declaration, Statement statement) {
this.declaration = declaration;
this.statement = statement;
}
public ParameterDeclaration getDeclaration() {
return declaration;
}
public Statement getStatement() {
return statement;
}
}