import java.util.Arrays;
import java.math.BigInteger;
+import java.security.ProtectionDomain;
public class Reflection {
Type returnType = method.getGenericReturnType();
Class.class.getSimpleName();*/
//System.out.println(returnType);
- BigInteger bi = new BigInteger("-1");
- System.out.println(bi);
+
+ //BigInteger bi = new BigInteger("-1");
+ //System.out.println(bi);
/* TODO: This is an excerpt of the BigInteger library
int radix = 10;
System.out.println(returnType);*/
/* TODO: Enumerate all methods in Class.class */
- Method[] methods = Class.class.getMethods();
+ /*Method[] methods = Class.class.getMethods();
for(Method mth : methods) {
System.out.println("===========================");
System.out.println("Method: " + mth.getName());
System.out.println();
Type returnType = mth.getGenericReturnType();
System.out.println(returnType + "\n");
- }
+ }*/
/*Class[] parameterTypes = methods[0].getParameterTypes();
for(Class parameterType: parameterTypes){
System.out.println(bound);
}
System.out.println();*/
+
+ ProtectionDomain pd = Class.class.getProtectionDomain();
+ System.out.println(pd);
}
}