3N/A/*
3N/A * CDDL HEADER START
3N/A *
3N/A * The contents of this file are subject to the terms of the
407N/A * Common Development and Distribution License (the "License").
3N/A * You may not use this file except in compliance with the License.
3N/A *
3N/A * See LICENSE.txt included in this distribution for the specific
3N/A * language governing permissions and limitations under the License.
3N/A *
3N/A * When distributing Covered Code, include this CDDL HEADER in each
3N/A * file and include the License file at LICENSE.txt.
3N/A * If applicable, add the following below this CDDL HEADER, with the
3N/A * fields enclosed by brackets "[]" replaced with your own identifying
3N/A * information: Portions Copyright [yyyy] [name of copyright owner]
3N/A *
3N/A * CDDL HEADER END
3N/A */
3N/A
3N/A/*
3N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3N/A * Use is subject to license terms.
3N/A */
3N/Apackage org.opensolaris.opengrok.analysis.java;
3N/A
4N/Aimport java.util.HashSet;
421N/Aimport java.util.Set;
3N/A
3N/A/**
3N/A * Holds static hash set containing the Java keywords
3N/A */
3N/Apublic class Consts{
421N/A public static final Set<String> kwd = new HashSet<String>() ;
3N/A static {
3N/A kwd.add( "abstract" );
3N/A kwd.add( "assert" );
3N/A kwd.add( "boolean" );
3N/A kwd.add( "break" );
3N/A kwd.add( "byte" );
3N/A kwd.add( "case" );
3N/A kwd.add( "catch" );
3N/A kwd.add( "char" );
3N/A kwd.add( "class" );
3N/A kwd.add( "const" );
3N/A kwd.add( "continue" );
3N/A kwd.add( "default" );
3N/A kwd.add( "do" );
3N/A kwd.add( "double" );
3N/A kwd.add( "else" );
3N/A kwd.add( "enum" );
3N/A kwd.add( "extends" );
3N/A kwd.add( "false" );
3N/A kwd.add( "final" );
3N/A kwd.add( "finally" );
3N/A kwd.add( "float" );
3N/A kwd.add( "for" );
3N/A kwd.add( "goto" );
3N/A kwd.add( "if" );
3N/A kwd.add( "implements" );
3N/A kwd.add( "import" );
3N/A kwd.add( "instanceof" );
3N/A kwd.add( "int" );
3N/A kwd.add( "interface" );
3N/A kwd.add( "long" );
3N/A kwd.add( "native" );
3N/A kwd.add( "new" );
3N/A kwd.add( "package" );
3N/A kwd.add( "private" );
3N/A kwd.add( "protected" );
3N/A kwd.add( "public" );
3N/A kwd.add( "return" );
3N/A kwd.add( "short" );
3N/A kwd.add( "static" );
3N/A kwd.add( "strictfp" );
3N/A kwd.add( "super" );
3N/A kwd.add( "synchronized" );
3N/A kwd.add( "switch" );
3N/A kwd.add( "this" );
3N/A kwd.add( "throw" );
3N/A kwd.add( "throws" );
3N/A kwd.add( "true" );
3N/A kwd.add( "transient" );
3N/A kwd.add( "try" );
3N/A kwd.add( "void" );
3N/A kwd.add( "volatile" );
3N/A kwd.add( "while" );
3N/A }
3N/A}