/** * @deprecated */ @Deprecated @SuppressWarnings("unchecked") protected static Set getJavaLangTypes() { return CodeGenUtil.getJavaDefaultTypes(); }
/** * @deprecated */ @Deprecated @SuppressWarnings("rawtypes") protected static Set getJavaLangTypes() { return CodeGenUtil.getJavaDefaultTypes(); }
/** * Tests whether the given string is the name of a primitive or java.lang type. */ public static boolean isJavaDefaultType(String s) { return getJavaDefaultTypes().contains(s); }
/** * Tests whether the given string is the name of a primitive or java.lang type. */ public static boolean isJavaDefaultType(String s) { return getJavaDefaultTypes().contains(s); }
/** * Tests whether the given string is the name of a java.lang type. */ public static boolean isJavaLangType(String s) { return getJavaDefaultTypes().contains(s) && Character.isUpperCase(s.charAt(0)); }
/** * Tests whether the given string is the name of a primitive type. */ public static boolean isJavaPrimitiveType(String s) { return getJavaDefaultTypes().contains(s) && Character.isLowerCase(s.charAt(0)); }
/** * Tests whether the given string is the name of a java.lang type. */ public static boolean isJavaLangType(String s) { return getJavaDefaultTypes().contains(s) && isUpperCase(s.charAt(0)); }
/** * Tests whether the given string is the name of a primitive type. */ public static boolean isJavaPrimitiveType(String s) { return getJavaDefaultTypes().contains(s) && isLowerCase(s.charAt(0)); }