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

io.joern.fuzzyc2cpg.ast.functionDef.Template Maven / Gradle / Ivy

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

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

public class Template extends TemplateBase {
  private TemplateTypeName typeName;

  private void setTemplateTypeName(TemplateTypeName typeName) {
    this.typeName = typeName;
    super.addChild(typeName);
  }

  @Override
  public String getName() {
    return typeName.getEscapedCodeStr();
  }

  public void addChild(AstNode node) {
    if (node instanceof TemplateTypeName) {
      setTemplateTypeName((TemplateTypeName) node);
    } else {
      super.addChild(node);
    }
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy