forked from JavaTX/JavaCompilerCore
22 lines
557 B
Java
22 lines
557 B
Java
package de.dhbwstuttgart.syntaxtree.statement;
|
|
|
|
import de.dhbwstuttgart.syntaxtree.StatementVisitor;
|
|
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric;
|
|
import de.dhbwstuttgart.syntaxtree.type.Void;
|
|
import org.antlr.v4.runtime.Token;
|
|
|
|
public class Throw extends Statement {
|
|
|
|
public final Expression expr;
|
|
|
|
public Throw(Expression expr, Token offset) {
|
|
super(new Void(offset), offset);
|
|
this.expr = expr;
|
|
}
|
|
|
|
@Override
|
|
public void accept(StatementVisitor visitor) {
|
|
visitor.visit(this);
|
|
}
|
|
}
|