-
- private static int digitsPerInt[] = {0, 0, 30, 19, 15, 13, 11,
- 11, 10, 9, 9, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5};
-
- private static long bitsPerDigit[] = { 0, 0,
- 1024, 1624, 2048, 2378, 2648, 2875, 3072, 3247, 3402, 3543, 3672,
- 3790, 3899, 4001, 4096, 4186, 4271, 4350, 4426, 4498, 4567, 4633,
- 4696, 4756, 4814, 4870, 4923, 4975, 5025, 5074, 5120, 5166, 5210,
- 5253, 5295};
-
- public static void main(String[] args) {
-
- /*Method[] methods = SampleClass.class.getMethods();
+
+ public static void main(String[] args) throws Exception {
+
+ //BigInteger bi = new BigInteger("-1");
+ //System.out.println(bi);
+ /*StringBuilder sb = new StringBuilder(0);
+ sb.append('[');
+ sb.append(']');
+ System.out.println(sb.toString());*/
+
+ //Class cls = Class.forName("groovy.runtime.metaclass.Logger.LoggerMetaClass");
+ //Class cls2 = Class.forName("groovy.runtime.metaclass.[Ljava.lang.Object;MetaClass");
+ //Class cls2 = Class.forName("[Ljava.lang.Object;BeanInfo");
+ Class cls = Object[].class;
+ System.out.println("Bean introspection do not ignore bean info: " + cls.getSimpleName());
+ System.out.println("Bean introspection do not ignore bean info: " + cls.getName());
+ Object obj = Introspector.getBeanInfo(cls);
+
+ /* TODO: Enumerate all methods in Class.class
+ Method[] methods = Collection.class.getMethods();
+ for(Method mth : methods) {
+ System.out.println("===========================");
+ //System.out.println("Method: " + mth.getName());
+ Type[] parameters = mth.getGenericParameterTypes();
+ for (int i = 0; i < parameters.length; i++) {
+ System.out.println(parameters[i]);
+ }
+ System.out.println();
+ Type returnType = mth.getGenericReturnType();
+ System.out.println(returnType + "\n");
+ }*/
+
+ /*Method[] methods = Collection.class.getMethods();