org.brains2b.typewriter
Class KeyWords

java.lang.Object
  extended byorg.brains2b.typewriter.KeyWords

public class KeyWords
extends java.lang.Object

Class that implements single static functions isReserved and isMethodReserved which checks if a String is a Java reserved word.

Version:
0.10 [Oct 29, 2003]
Author:
dennis@brains2b.nl

Method Summary
static boolean isMethodReserved(java.lang.String name)
          check if a String is a Java reserved method Only one will return true at the moment getClass()
static boolean isReserved(java.lang.String name)
          check if a String is a Java reserved word/keyword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isReserved

public static boolean isReserved(java.lang.String name)
check if a String is a Java reserved word/keyword

Parameters:
name - String, the value to check
Returns:
boolean, true if the String is a keyword, otherwise false, also if the name is null.

isMethodReserved

public static boolean isMethodReserved(java.lang.String name)
check if a String is a Java reserved method

Only one will return true at the moment getClass()

Parameters:
name - String, the value to check
Returns:
boolean, true if the String is a reserverd method, otherwise false, also if the name is null.