Java Code Examples for org.eclipse.jdt.core.compiler.ITerminalSymbols#TokenNameCharacterLiteral

The following examples show how to use org.eclipse.jdt.core.compiler.ITerminalSymbols#TokenNameCharacterLiteral . 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: JavaTokenTypeTokenizer.java    From api-mining with GNU General Public License v3.0 5 votes vote down vote up
/**
 * @param token
 * @return
 */
public static boolean isLiteralToken(final int token) {
	return token == ITerminalSymbols.TokenNameStringLiteral
			|| token == ITerminalSymbols.TokenNameCharacterLiteral
			|| token == ITerminalSymbols.TokenNameFloatingPointLiteral
			|| token == ITerminalSymbols.TokenNameIntegerLiteral
			|| token == ITerminalSymbols.TokenNameLongLiteral
			|| token == ITerminalSymbols.TokenNameDoubleLiteral;
}
 
Example 2
Source File: JavaTokenTypeTokenizer.java    From tassal with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * @param token
 * @return
 */
public static boolean isLiteralToken(final int token) {
	return token == ITerminalSymbols.TokenNameStringLiteral
			|| token == ITerminalSymbols.TokenNameCharacterLiteral
			|| token == ITerminalSymbols.TokenNameFloatingPointLiteral
			|| token == ITerminalSymbols.TokenNameIntegerLiteral
			|| token == ITerminalSymbols.TokenNameLongLiteral
			|| token == ITerminalSymbols.TokenNameDoubleLiteral;
}
 
Example 3
Source File: JavaTokenTypeTokenizer.java    From codemining-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * @param token
 * @return
 */
public static boolean isLiteralToken(final int token) {
	return token == ITerminalSymbols.TokenNameStringLiteral
			|| token == ITerminalSymbols.TokenNameCharacterLiteral
			|| token == ITerminalSymbols.TokenNameFloatingPointLiteral
			|| token == ITerminalSymbols.TokenNameIntegerLiteral
			|| token == ITerminalSymbols.TokenNameLongLiteral
			|| token == ITerminalSymbols.TokenNameDoubleLiteral;
}