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

net.sourceforge.pmd.lang.velocity.ast.VtlTokenKinds Maven / Gradle / Ivy

The newest version!
/* Generated By:JJTree&JavaCC: Do not edit this line. VtlParserImplConstants.java */
package net.sourceforge.pmd.lang.velocity.ast;


/**
 * net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken literal values and constants.
 * Generated by org.javacc.parser.OtherFilesGen#start()
 */
/** Token kinds ({@link net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken#kind}) for this language. */
 @net.sourceforge.pmd.annotation.InternalApi
 @net.sourceforge.pmd.annotation.Generated("org.javacc.javacc")
 public final class VtlTokenKinds {
     private VtlTokenKinds() { /* Utility class */ }
 

  public static final   int EOF = 0;
  public static final   int INDEX_LBRACKET = 1;
  public static final   int INDEX_RBRACKET = 2;
  public static final   int LBRACKET = 3;
  public static final   int RBRACKET = 4;
  public static final   int COMMA = 5;
  public static final   int DOUBLEDOT = 6;
  public static final   int IN = 7;
  public static final   int COLON = 8;
  public static final   int LEFT_CURLEY = 9;
  public static final   int RIGHT_CURLEY = 10;
  public static final   int LPAREN = 11;
  public static final   int RPAREN = 12;
  public static final   int REFMOD2_RPAREN = 13;
  public static final   int ESCAPE_DIRECTIVE = 14;
  public static final   int SET_DIRECTIVE = 15;
  public static final   int DOLLAR = 16;
  public static final   int DOLLARBANG = 17;
  public static final   int HASH = 21;
  public static final   int SINGLE_LINE_COMMENT_START = 22;
  public static final   int DOUBLE_ESCAPE = 23;
  public static final   int ESCAPE = 24;
  public static final   int TEXT = 25;
  public static final   int SINGLE_LINE_COMMENT = 26;
  public static final   int FORMAL_COMMENT = 27;
  public static final   int MULTI_LINE_COMMENT = 28;
  public static final   int TEXTBLOCK = 29;
  public static final   int WHITESPACE = 32;
  public static final   int STRING_LITERAL = 33;
  public static final   int TRUE = 34;
  public static final   int FALSE = 35;
  public static final   int NEWLINE = 36;
  public static final   int MINUS = 37;
  public static final   int PLUS = 38;
  public static final   int MULTIPLY = 39;
  public static final   int DIVIDE = 40;
  public static final   int MODULUS = 41;
  public static final   int LOGICAL_AND = 42;
  public static final   int LOGICAL_OR = 43;
  public static final   int LOGICAL_LT = 44;
  public static final   int LOGICAL_LE = 45;
  public static final   int LOGICAL_GT = 46;
  public static final   int LOGICAL_GE = 47;
  public static final   int LOGICAL_EQUALS = 48;
  public static final   int LOGICAL_NOT_EQUALS = 49;
  public static final   int LOGICAL_NOT = 50;
  public static final   int EQUALS = 51;
  public static final   int END = 52;
  public static final   int FOREACH_DIRECTIVE = 53;
  public static final   int IF_DIRECTIVE = 54;
  public static final   int ELSEIF_DIRECTIVE = 55;
  public static final   int ELSE_DIRECTIVE = 56;
  public static final   int DIGIT = 57;
  public static final   int INTEGER_LITERAL = 58;
  public static final   int FLOATING_POINT_LITERAL = 59;
  public static final   int EXPONENT = 60;
  public static final   int LETTER = 61;
  public static final   int DIRECTIVE_CHAR = 62;
  public static final   int WORD = 63;
  public static final   int BRACKETED_WORD = 64;
  public static final   int ALPHA_CHAR = 65;
  public static final   int ALPHANUM_CHAR = 66;
  public static final   int IDENTIFIER_CHAR = 67;
  public static final   int IDENTIFIER = 68;
  public static final   int DOT = 69;
  public static final   int LCURLY = 70;
  public static final   int RCURLY = 71;
  public static final   int REFERENCE_TERMINATOR = 72;
  public static final   int DIRECTIVE_TERMINATOR = 73;
  public static final   int EMPTY_INDEX = 74;

  static final   int REFERENCE = 0;
  static final   int REFMODIFIER = 1;
  static final   int REFINDEX = 2;
  static final   int DIRECTIVE = 3;
  static final   int REFMOD2 = 4;
  static final   int DEFAULT = 5;
  static final   int REFMOD = 6;
  static final   int IN_TEXTBLOCK = 7;
  static final   int IN_MULTI_LINE_COMMENT = 8;
  static final   int IN_FORMAL_COMMENT = 9;
  static final   int IN_SINGLE_LINE_COMMENT = 10;
  static final   int PRE_DIRECTIVE = 11;

  
  /** Returns a string describing the given token kind.
    * Returns null if the kind is unknown.
    *
    * @param kind Kind of token
    *
    * @return A string describing the given kind
    */
  public static @org.checkerframework.checker.nullness.qual.Nullable
                String describe(int kind) {
    return kind < 0 || kind >= tokenImage.length
        ? null
        : tokenImage[kind];
  }

  /** Returns a new token manager for this language. The CharStream
    * should be configured with the correct language-specific escaping
    * and token document. This is not a published API, it's intended to
    * be used as a basis for a CPD Tokenizer.
    */
  @net.sourceforge.pmd.annotation.InternalApi
  public static net.sourceforge.pmd.lang.TokenManager newTokenManager(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream cs) {
    return new VtlParserImplTokenManager(cs);
  }

    private static final
            
  String[] tokenImage = {
    "",
    "\"[\"",
    "\"]\"",
    "\"[\"",
    "\"]\"",
    "\",\"",
    "\"..\"",
    "\"in\"",
    "\":\"",
    "\"{\"",
    "\"}\"",
    "\"(\"",
    "",
    "\")\"",
    "",
    "",
    "",
    "",
    "\"#[[\"",
    "",
    "\"#*\"",
    "\"#\"",
    "\"##\"",
    "\"\\\\\\\\\"",
    "\"\\\\\"",
    "",
    "",
    "\"*#\"",
    "\"*#\"",
    "\"]]#\"",
    "",
    "",
    "",
    "",
    "\"true\"",
    "\"false\"",
    "",
    "\"-\"",
    "\"+\"",
    "\"*\"",
    "\"/\"",
    "\"%\"",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "\"=\"",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "\"{\"",
    "\"}\"",
    "",
    "",
    "",
  
  };

  /** Nams of the tokens, each index corresponds to a kind. See also {@link #describe(int)}. */
  public static final java.util.List TOKEN_NAMES = java.util.Collections.unmodifiableList(java.util.Arrays.asList(tokenImage));
            

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy