| |
|
| spoon.reflect.visitor.JavaIdentifiers
JavaIdentifiers | public enum JavaIdentifiers (Code) | | This enum defines the Java keywords and some helper method to determine if
some strings are Java identifiers.
|
ABSTRACT | Enum Constant ABSTRACT(Code) | | |
ASSERT | Enum Constant ASSERT(Code) | | |
BREAK | Enum Constant BREAK(Code) | | |
CATCH | Enum Constant CATCH(Code) | | |
CLASS | Enum Constant CLASS(Code) | | |
CONTINUE | Enum Constant CONTINUE(Code) | | |
EXTENDS | Enum Constant EXTENDS(Code) | | |
FINAL | Enum Constant FINAL(Code) | | |
IMPORT | Enum Constant IMPORT(Code) | | |
INTERFACE | Enum Constant INTERFACE(Code) | | |
KEYWORDS | public static Set<String> KEYWORDS(Code) | | Contains the Java keywords.
|
NATIVE | Enum Constant NATIVE(Code) | | |
PACKAGE | Enum Constant PACKAGE(Code) | | |
PRIVATE | Enum Constant PRIVATE(Code) | | |
PROTECTED | Enum Constant PROTECTED(Code) | | |
PUBLIC | Enum Constant PUBLIC(Code) | | |
RETURN | Enum Constant RETURN(Code) | | |
STATIC | Enum Constant STATIC(Code) | | |
STRICTFP | Enum Constant STRICTFP(Code) | | |
SUPER | Enum Constant SUPER(Code) | | |
SWITCH | Enum Constant SWITCH(Code) | | |
SYNCHRONIZED | Enum Constant SYNCHRONIZED(Code) | | |
THROW | Enum Constant THROW(Code) | | |
TRANSIENT | Enum Constant TRANSIENT(Code) | | |
VOLATILE | Enum Constant VOLATILE(Code) | | |
WHILE | Enum Constant WHILE(Code) | | |
isJavaIdentifier | static boolean isJavaIdentifier(String s)(Code) | | |
isLegalJavaExecutableIdentifier | public static boolean isLegalJavaExecutableIdentifier(String string)(Code) | | Ckecks if a string is a valid Java package identifier.
Parameters: string - the string to be tested |
isLegalJavaIdentifier | public static boolean isLegalJavaIdentifier(String string)(Code) | | Ckecks if a string is a valid Java identifier and not a Java keyword.
Parameters: string - the string to be tested |
isLegalJavaPackageIdentifier | public static boolean isLegalJavaPackageIdentifier(String string)(Code) | | Ckecks if a string is a valid Java package identifier.
Parameters: string - the string to be tested |
|
|
|