Lines Matching refs:primitive
12 * This class offers a few helpful methods for handling primitive datatypes in the Java Reflection API
19 * Takes a Class Variable for primitive Datatype or its Wrapper-Classes and a String.
20 * Then an instance of the Class (for primitive Datatypes an instance of its Wrapper-Class)
66 * Returns xx.TYPE Classes for primitive Datatypes
74 // treat primitive datatypes
102 * Takes a primitive data type (as a string) and returns the corresponding
105 * @return String the name of the wrapper class for the given primitive data type
107 public static String getWrapperTypeForPrimitive(String primitive) {
108 // treat primitive datatypes
109 if ("short".equals(primitive))
111 else if ("byte".equals(primitive))
113 else if ("int".equals(primitive))
115 else if ("long".equals(primitive))
117 else if ("float".equals(primitive))
119 else if ("double".equals(primitive))
121 else if ("char".equals(primitive))
123 else if ("boolean".equals(primitive))
126 return primitive;