All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.joern.fuzzyc2cpg.ast.statements.jump.ThrowStatement Maven / Gradle / Ivy

There is a newer version: 1.1.911
Show newest version
package io.joern.fuzzyc2cpg.ast.statements.jump;

import io.joern.fuzzyc2cpg.ast.AstNode;
import io.joern.fuzzyc2cpg.ast.expressions.Expression;
import io.joern.fuzzyc2cpg.ast.logical.statements.JumpStatement;
import io.joern.fuzzyc2cpg.ast.walking.ASTNodeVisitor;

public class ThrowStatement extends JumpStatement {

  private Expression throwExpression = null;

  public Expression getThrowExpression() {
    return this.throwExpression;
  }

  public void setThrowExpression(Expression expression) {
    this.throwExpression = expression;
    super.addChild(expression);
  }

  public void accept(ASTNodeVisitor visitor) {
    visitor.visit(this);
  }

  @Override
  public void addChild(AstNode node) {
    if (node instanceof Expression) {
      setThrowExpression((Expression) node);
    } else {
      super.addChild(node);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy