jdk.nashorn.internal.parser.Lexer.LexerToken Java Examples

The following examples show how to use jdk.nashorn.internal.parser.Lexer.LexerToken. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LiteralNode.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private LexerTokenLiteralNode(final long token, final int finish, final LexerToken value) {
    super(Token.recast(token, TokenType.STRING), finish, value); //TODO is string the correct token type here?
}
 
Example #2
Source File: LiteralNode.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
private LexerTokenLiteralNode(final long token, final int finish, final LexerToken value) {
    super(Token.recast(token, TokenType.STRING), finish, value); //TODO is string the correct token type here?
}
 
Example #3
Source File: LiteralNode.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private LexerTokenLiteralNode(final long token, final int finish, final LexerToken value) {
    super(Token.recast(token, TokenType.STRING), finish, value); //TODO is string the correct token type here?
}
 
Example #4
Source File: LiteralNode.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private LexerTokenLiteralNode(final long token, final int finish, final LexerToken value) {
    super(Token.recast(token, TokenType.STRING), finish, value); //TODO is string the correct token type here?
}
 
Example #5
Source File: LiteralNode.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
private LexerTokenLiteralNode(final long token, final int finish, final LexerToken value) {
    super(Token.recast(token, TokenType.STRING), finish, value); //TODO is string the correct token type here?
}
 
Example #6
Source File: LiteralNode.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
private LexerTokenLiteralNode(final long token, final int finish, final LexerToken value) {
    super(Token.recast(token, TokenType.STRING), finish, value); //TODO is string the correct token type here?
}
 
Example #7
Source File: LiteralNode.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
private LexerTokenLiteralNode(final long token, final int finish, final LexerToken value) {
    super(Token.recast(token, TokenType.STRING), finish, value); //TODO is string the correct token type here?
}
 
Example #8
Source File: LiteralNode.java    From nashorn with GNU General Public License v2.0 4 votes vote down vote up
private LexerTokenLiteralNode(final long token, final int finish, final LexerToken value) {
    super(Token.recast(token, TokenType.STRING), finish, value); //TODO is string the correct token type here?
}
 
Example #9
Source File: LiteralNode.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private LexerTokenLiteralNode(final long token, final int finish, final LexerToken value) {
    super(Token.recast(token, TokenType.STRING), finish, value); //TODO is string the correct token type here?
}
 
Example #10
Source File: LiteralNode.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
private LexerTokenLiteralNode(final long token, final int finish, final LexerToken value) {
    super(Token.recast(token, TokenType.STRING), finish, value); //TODO is string the correct token type here?
}
 
Example #11
Source File: LiteralNode.java    From jdk8u_nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new literal node for a lexer token
 *
 * @param token   token
 * @param finish  finish
 * @param value   lexer token value
 *
 * @return the new literal node
 */
public static LiteralNode<LexerToken> newInstance(final long token, final int finish, final LexerToken value) {
    return new LexerTokenLiteralNode(token, finish, value);
}
 
Example #12
Source File: LiteralNode.java    From jdk8u_nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new lexer token literal based on a parent node (source, token, finish)
 *
 * @param parent parent node
 * @param value  lexer token
 *
 * @return the new literal node
 */
public static LiteralNode<?> newInstance(final Node parent, final LexerToken value) {
    return new LexerTokenLiteralNode(parent.getToken(), parent.getFinish(), value);
}
 
Example #13
Source File: LiteralNode.java    From nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new lexer token literal based on a parent node (source, token, finish)
 *
 * @param parent parent node
 * @param value  lexer token
 *
 * @return the new literal node
 */
public static LiteralNode<?> newInstance(final Node parent, final LexerToken value) {
    return new LexerTokenLiteralNode(parent.getToken(), parent.getFinish(), value);
}
 
Example #14
Source File: LiteralNode.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new lexer token literal based on a parent node (source, token, finish)
 *
 * @param parent parent node
 * @param value  lexer token
 *
 * @return the new literal node
 */
public static LiteralNode<?> newInstance(final Node parent, final LexerToken value) {
    return new LexerTokenLiteralNode(parent.getToken(), parent.getFinish(), value);
}
 
Example #15
Source File: LiteralNode.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new literal node for a lexer token
 *
 * @param token   token
 * @param finish  finish
 * @param value   lexer token value
 *
 * @return the new literal node
 */
public static LiteralNode<LexerToken> newInstance(final long token, final int finish, final LexerToken value) {
    return new LexerTokenLiteralNode(token, finish, value);
}
 
Example #16
Source File: LiteralNode.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new lexer token literal based on a parent node (source, token, finish)
 *
 * @param parent parent node
 * @param value  lexer token
 *
 * @return the new literal node
 */
public static LiteralNode<?> newInstance(final Node parent, final LexerToken value) {
    return new LexerTokenLiteralNode(parent.getToken(), parent.getFinish(), value);
}
 
Example #17
Source File: LiteralNode.java    From nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new literal node for a lexer token
 *
 * @param token   token
 * @param finish  finish
 * @param value   lexer token value
 *
 * @return the new literal node
 */
public static LiteralNode<LexerToken> newInstance(final long token, final int finish, final LexerToken value) {
    return new LexerTokenLiteralNode(token, finish, value);
}
 
Example #18
Source File: LiteralNode.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new literal node for a lexer token
 *
 * @param token   token
 * @param finish  finish
 * @param value   lexer token value
 *
 * @return the new literal node
 */
public static LiteralNode<LexerToken> newInstance(final long token, final int finish, final LexerToken value) {
    return new LexerTokenLiteralNode(token, finish, value);
}
 
Example #19
Source File: LiteralNode.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new lexer token literal based on a parent node (source, token, finish)
 *
 * @param parent parent node
 * @param value  lexer token
 *
 * @return the new literal node
 */
public static LiteralNode<?> newInstance(final Node parent, final LexerToken value) {
    return new LexerTokenLiteralNode(parent.getToken(), parent.getFinish(), value);
}
 
Example #20
Source File: LiteralNode.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new literal node for a lexer token
 *
 * @param token   token
 * @param finish  finish
 * @param value   lexer token value
 *
 * @return the new literal node
 */
public static LiteralNode<LexerToken> newInstance(final long token, final int finish, final LexerToken value) {
    return new LexerTokenLiteralNode(token, finish, value);
}
 
Example #21
Source File: LiteralNode.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new lexer token literal based on a parent node (source, token, finish)
 *
 * @param parent parent node
 * @param value  lexer token
 *
 * @return the new literal node
 */
public static LiteralNode<?> newInstance(final Node parent, final LexerToken value) {
    return new LexerTokenLiteralNode(parent.getToken(), parent.getFinish(), value);
}
 
Example #22
Source File: LiteralNode.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new literal node for a lexer token
 *
 * @param token   token
 * @param finish  finish
 * @param value   lexer token value
 *
 * @return the new literal node
 */
public static LiteralNode<LexerToken> newInstance(final long token, final int finish, final LexerToken value) {
    return new LexerTokenLiteralNode(token, finish, value);
}
 
Example #23
Source File: LiteralNode.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new lexer token literal based on a parent node (source, token, finish)
 *
 * @param parent parent node
 * @param value  lexer token
 *
 * @return the new literal node
 */
public static LiteralNode<?> newInstance(final Node parent, final LexerToken value) {
    return new LexerTokenLiteralNode(parent.getToken(), parent.getFinish(), value);
}
 
Example #24
Source File: LiteralNode.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new literal node for a lexer token
 *
 * @param token   token
 * @param finish  finish
 * @param value   lexer token value
 *
 * @return the new literal node
 */
public static LiteralNode<LexerToken> newInstance(final long token, final int finish, final LexerToken value) {
    return new LexerTokenLiteralNode(token, finish, value);
}
 
Example #25
Source File: LiteralNode.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new lexer token literal based on a parent node (source, token, finish)
 *
 * @param parent parent node
 * @param value  lexer token
 *
 * @return the new literal node
 */
public static LiteralNode<?> newInstance(final Node parent, final LexerToken value) {
    return new LexerTokenLiteralNode(parent.getToken(), parent.getFinish(), value);
}
 
Example #26
Source File: LiteralNode.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new literal node for a lexer token
 *
 * @param token   token
 * @param finish  finish
 * @param value   lexer token value
 *
 * @return the new literal node
 */
public static LiteralNode<LexerToken> newInstance(final long token, final int finish, final LexerToken value) {
    return new LexerTokenLiteralNode(token, finish, value);
}
 
Example #27
Source File: LiteralNode.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new lexer token literal based on a parent node (source, token, finish)
 *
 * @param parent parent node
 * @param value  lexer token
 *
 * @return the new literal node
 */
public static LiteralNode<?> newInstance(final Node parent, final LexerToken value) {
    return new LexerTokenLiteralNode(parent.getToken(), parent.getFinish(), value);
}
 
Example #28
Source File: LiteralNode.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new literal node for a lexer token
 *
 * @param token   token
 * @param finish  finish
 * @param value   lexer token value
 *
 * @return the new literal node
 */
public static LiteralNode<LexerToken> newInstance(final long token, final int finish, final LexerToken value) {
    return new LexerTokenLiteralNode(token, finish, value);
}
 
Example #29
Source File: LiteralNode.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new lexer token literal based on a parent node (source, token, finish)
 *
 * @param parent parent node
 * @param value  lexer token
 *
 * @return the new literal node
 */
public static LiteralNode<?> newInstance(final Node parent, final LexerToken value) {
    return new LexerTokenLiteralNode(parent.getToken(), parent.getFinish(), value);
}
 
Example #30
Source File: LiteralNode.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new literal node for a lexer token
 *
 * @param token   token
 * @param finish  finish
 * @param value   lexer token value
 *
 * @return the new literal node
 */
public static LiteralNode<LexerToken> newInstance(final long token, final int finish, final LexerToken value) {
    return new LexerTokenLiteralNode(token, finish, value);
}