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

io.joern.fuzzyc2cpg.ast.expressions.ExpressionList 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.walking.ASTNodeVisitor;

import java.util.Iterator;
import java.util.LinkedList;

public class ExpressionList extends Expression implements Iterable {

  private LinkedList expressions = new LinkedList<>();

  public int size() {
    return this.expressions.size();
  }

  public Expression getExpression(int index) {
    return this.expressions.get(index);
  }

  public void addExpression(Expression expression) {
    this.expressions.add(expression);
    super.addChild(expression);
  }

  @Override
  public Iterator iterator() {
    return this.expressions.iterator();
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy