org.projectnessie.nessie.cli.grammar.ast.ShowLogStatement Maven / Gradle / Ivy
/* Generated by: CongoCC Parser Generator. Do not edit.
* Generated Code for ShowLogStatement 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 ShowLogStatement extends BaseNode implements ShowLogCommandSpec {
public static final List LEADING_TOKENS = List.of(TokenType.SHOW);
@Override
public String getInCatalog() {
return stringValueOf("inCatalog");
}
@Override
public String getRef() {
return stringValueOf("ref");
}
@Override
public String getRefTimestampOrHash() {
return stringValueOf("at");
}
@Override
public Integer getLimit() {
String limit = stringValueOf("limit");
return limit != null ? Integer.parseInt(limit) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy