Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1012541 // isJavaKeyword

JavaX fragment (include)

1  
static Set<S> isJavaKeyword_keywords = new HashSet(splitAtSpace([[abstract	continue	for	new	switch
2  
assert	default	goto	package	synchronized
3  
boolean	do	if	private	this
4  
break	double	implements	protected	throw
5  
byte	else	import	public	throws
6  
case	enum	instanceof	return	transient
7  
catch	extends	int	short	try
8  
char	final	interface	static	void
9  
class	finally	long	strictfp	volatile
10  
const	float	native	super	while]]));
11  
12  
static bool isJavaKeyword(S s) {
13  
  ret isJavaKeyword_keywords.contains(s);
14  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012541
Snippet name: isJavaKeyword
Eternal ID of this version: #1012541/1
Text MD5: 7d07330e5cc8b8aebe4befe102c2473a
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-06 23:05:57
Source code size: 500 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 240 / 284
Referenced in: [show references]