Enum HclLexicalGrammar
- java.lang.Object
-
- java.lang.Enum<HclLexicalGrammar>
-
- org.sonar.iac.terraform.parser.grammar.HclLexicalGrammar
-
- All Implemented Interfaces:
com.sonar.sslr.api.AstNodeType,Serializable,Comparable<HclLexicalGrammar>,org.sonar.sslr.grammar.GrammarRuleKey
public enum HclLexicalGrammar extends Enum<HclLexicalGrammar> implements org.sonar.sslr.grammar.GrammarRuleKey
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTRIBUTEBLOCKBOOLEAN_LITERALEOFLexicalEXPRESSIONFILEFUNCTION_CALLHEREDOC_LITERALIDENTIFIERLABELLITERAL_EXPRESSIONExpressionNEWLINENULLNUMERIC_INDEXNUMERIC_LITERALOBJECTOBJECT_ELEMENTONE_LINE_BLOCKQUOTED_TEMPLATEQUOTED_TEMPLATE_STRING_CHARACTERSSPACINGSPACINGSTRING_LITERALSTRING_WITHOUT_INTERPOLATIONTEMPLATE_LITERALTUPLEVARIABLE_EXPRESSION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.sonar.sslr.grammar.LexerlessGrammarBuildercreateGrammarBuilder()static HclLexicalGrammarvalueOf(String name)Returns the enum constant of this type with the specified name.static HclLexicalGrammar[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILE
public static final HclLexicalGrammar FILE
-
ONE_LINE_BLOCK
public static final HclLexicalGrammar ONE_LINE_BLOCK
-
BLOCK
public static final HclLexicalGrammar BLOCK
-
EXPRESSION
public static final HclLexicalGrammar EXPRESSION
-
LABEL
public static final HclLexicalGrammar LABEL
-
ATTRIBUTE
public static final HclLexicalGrammar ATTRIBUTE
-
OBJECT
public static final HclLexicalGrammar OBJECT
-
OBJECT_ELEMENT
public static final HclLexicalGrammar OBJECT_ELEMENT
-
TUPLE
public static final HclLexicalGrammar TUPLE
-
FUNCTION_CALL
public static final HclLexicalGrammar FUNCTION_CALL
-
EOF
public static final HclLexicalGrammar EOF
Lexical
-
IDENTIFIER
public static final HclLexicalGrammar IDENTIFIER
-
STRING_LITERAL
public static final HclLexicalGrammar STRING_LITERAL
-
STRING_WITHOUT_INTERPOLATION
public static final HclLexicalGrammar STRING_WITHOUT_INTERPOLATION
-
TEMPLATE_LITERAL
public static final HclLexicalGrammar TEMPLATE_LITERAL
-
NUMERIC_LITERAL
public static final HclLexicalGrammar NUMERIC_LITERAL
-
NUMERIC_INDEX
public static final HclLexicalGrammar NUMERIC_INDEX
-
HEREDOC_LITERAL
public static final HclLexicalGrammar HEREDOC_LITERAL
-
SPACING
public static final HclLexicalGrammar SPACING
SPACING
-
NEWLINE
public static final HclLexicalGrammar NEWLINE
-
LITERAL_EXPRESSION
public static final HclLexicalGrammar LITERAL_EXPRESSION
Expression
-
VARIABLE_EXPRESSION
public static final HclLexicalGrammar VARIABLE_EXPRESSION
-
QUOTED_TEMPLATE
public static final HclLexicalGrammar QUOTED_TEMPLATE
-
BOOLEAN_LITERAL
public static final HclLexicalGrammar BOOLEAN_LITERAL
-
NULL
public static final HclLexicalGrammar NULL
-
QUOTED_TEMPLATE_STRING_CHARACTERS
public static final HclLexicalGrammar QUOTED_TEMPLATE_STRING_CHARACTERS
-
-
Method Detail
-
values
public static HclLexicalGrammar[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HclLexicalGrammar c : HclLexicalGrammar.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HclLexicalGrammar valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
createGrammarBuilder
public static org.sonar.sslr.grammar.LexerlessGrammarBuilder createGrammarBuilder()
-
-