org.projectnessie.nessie.cli.grammar.ast.StringLiteral Maven / Gradle / Ivy
/* Generated by: CongoCC Parser Generator. Do not edit.
* Generated Code for StringLiteral Token subclass
* by the ASTToken.java.ftl template
*/
package org.projectnessie.nessie.cli.grammar.ast;
import org.projectnessie.nessie.cli.grammar.*;
import static org.projectnessie.nessie.cli.grammar.Token.TokenType.*;
public class StringLiteral extends Literal implements IdentifierOrLiteral {
@Override
public String getStringValue() {
String src = getSource();
// Remove quotes
return src.substring(1, src.length() - 1);
}
public StringLiteral(TokenType type, NessieCliLexer tokenSource, int beginOffset, int endOffset) {
super(type, tokenSource, beginOffset, endOffset);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy