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

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

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

import io.joern.fuzzyc2cpg.FunctionParser;
import io.joern.fuzzyc2cpg.ast.walking.ASTNodeVisitor;
import io.joern.fuzzyc2cpg.parser.AstNodeFactory;

public class NewExpression extends CallExpressionBase {

  private Identifier targetClass;

  public Identifier getTargetClass() {
    return this.targetClass;
  }

  public void setTargetClass(FunctionParser.Type_nameContext ctx) {
    this.targetClass = new Identifier();
    AstNodeFactory.initializeFromContext(targetClass, ctx);
    super.addChild(targetClass);
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy