1 package org.python.core; 2 import java.lang.reflect.*; 3 4 10 11 class Java2Accessibility extends JavaAccessibility 12 { 13 void setAccess(Field field, boolean flag) throws SecurityException { 14 field.setAccessible(flag); 15 } 16 17 void setAccess(Method method, boolean flag) throws SecurityException { 18 method.setAccessible(flag); 19 } 20 21 void setAccess(Constructor constructor, boolean flag) 22 throws SecurityException  23 { 24 constructor.setAccessible(flag); 25 } 26 } 27 | Popular Tags |