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

io.joern.fuzzyc2cpg.ast.expressions.Expression Maven / Gradle / Ivy

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

import io.joern.fuzzyc2cpg.ast.AstNode;
import io.joern.fuzzyc2cpg.ast.walking.ASTNodeVisitor;

public class Expression extends AstNode {

  private String operator = "";

  public Expression() {
  }

  public Expression(Expression other) {
    super(other);
    setOperator(other.operator);
  }

  public void replaceFirstChild(AstNode node) {
    children.set(0, node);
  }

  public String getOperator() {
    return operator;
  }

  public void setOperator(String text) {
    operator = text;
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy