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

org.projectnessie.nessie.cli.grammar.ast.DropReferenceStatement Maven / Gradle / Ivy

There is a newer version: 0.101.3
Show newest version
/* Generated by: CongoCC Parser Generator. Do not edit.
* Generated Code for DropReferenceStatement AST Node type
* by the ASTNode.java.ftl template
*/
package org.projectnessie.nessie.cli.grammar.ast;

import org.projectnessie.nessie.cli.cmdspec.*;
import org.projectnessie.nessie.cli.grammar.*;
import java.util.*;
import org.projectnessie.nessie.cli.grammar.Token.TokenType;
import static org.projectnessie.nessie.cli.grammar.Token.TokenType.*;


public class DropReferenceStatement extends BaseNode implements DropReferenceCommandSpec {
    public static final List LEADING_TOKENS = List.of(TokenType.DROP);

    @Override
    public String getInCatalog() {
        return stringValueOf("inCatalog");
    }

    @Override
    public boolean isConditional() {
        return getNamedChild("conditional") != null;
    }

    @Override
    public String getRefType() {
        return getNamedChild("type").getSource().toUpperCase();
    }

    @Override
    public String getRef() {
        return stringValueOf("ref");
    }

}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy