js/logEventMatcher/lemToken.js
/**
 * Constructs a token with the specified type and text
 * 
 * @classdesc
 * 
 * This class represents a token used in performing a text query. Tokens are
 * produced by {@link LEMTokenizer}s from the raw query string and consumed by
 * a {@link LEMParser}. Each token comprises a type and text. The type is a
 * {@link TokenType} enum instance and specifies the type of the token. The text
 * is a string and is the texual representation of the token.
 * 
 * @constructor
 * @param {TokenType} type The type of the token
 * @param {String} text The texual representation of the token
 */
Constructs a token with the specified type and text

@classdesc

This class represents a token used in performing a text query. Tokens are
produced by  LEMTokenizers from the raw query string and consumed by
a  LEMParser. Each token comprises a type and text. The type is a
TokenType enum instance and specifies the type of the token. The text
is a string and is the texual representation of the token.

@constructor
@param {TokenType} type The type of the token
@param {String} text The texual representation of the token
Constructs a token with the specified type and text @classdesc This class represents a token used in performing a text query . Tokens are produced by LEMTokenizers from the raw query string and consumed by a LEMParser . Each token comprises a type and text . The type is a TokenType enum instance and specifies the type of the token . The text is a string and is the texual representation of the token . @constructor @param { TokenType } type The type of the token @param { String } text The texual representation of the token
function Token(type, text) {
    this.type = type;
    this.text = text;
    if (type.getText() != null && type.getText() != text) {
        throw new Exception("Token constructor: the text argument must match the TokenType's text if the TokenType has a set text");
    }
}
function Token ( type , text ) { this . type = type ; this . text = text ; if ( type . getText ( ) != null && type . getText ( ) != text ) { throw new Exception ( "Token constructor: the text argument must match the TokenType's text if the TokenType has a set text" ) ; } }
Constructs a token with the specified type and text
Constructs a token with the specified type and text
/** @private */ /** @private */