public class KeyWords
extends java.lang.Object
isReserved
and isMethodReserved which checks if a String
is a Java reserved word.| Modifier and Type | Method and Description |
|---|---|
static boolean |
isMethodReserved(java.lang.String name)
check if a String is a Java reserved method
|
static boolean |
isReserved(java.lang.String name)
check if a String is a Java reserved word/keyword
|
public static boolean isReserved(java.lang.String name)
name - String, the value to checkpublic static boolean isMethodReserved(java.lang.String name)
Only one will return true at the moment getClass()
name - String, the value to check