org.projectnessie.nessie.cli.grammar.ast.CreateReferenceStatement Maven / Gradle / Ivy
/* Generated by: CongoCC Parser Generator. Do not edit.
* Generated Code for CreateReferenceStatement 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 CreateReferenceStatement extends BaseNode implements CreateReferenceCommandSpec {
public static final List LEADING_TOKENS = List.of(TokenType.CREATE);
@Override
public String getInCatalog() {
return stringValueOf("inCatalog");
}
@Override
public boolean isConditional() {
return getNamedChild("conditional") != null;
}
@Override
public String getRef() {
return stringValueOf("ref");
}
@Override
public String getRefType() {
return getNamedChild("type").getSource().toUpperCase();
}
@Override
public String getFromRef() {
return stringValueOf("from");
}
@Override
public String getRefTimestampOrHash() {
return stringValueOf("at");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy