The SourceVersion enum consists of the following constants:
- RELEASE_0
- RELEASE_1
- RELEASE_2
- RELEASE_3
- RELEASE_4
- RELEASE_5
- RELEASE_6
- RELEASE_7
- RELEASE_8
This enum also contains several methods, which are as follows:
Method name: isIdentifier
public static boolean isIdentifier(CharSequence name)
This method returns true if the parameter string is a Java identifier or keyword.
Method name: isKeyword
public static boolean isKeyword(CharSequence s)
This method returns true if the given CharSequence is a literal or keyword.
Method name: isName
public static boolean isName(CharSequence name) ...