< prev index next >

src/java.base/share/classes/jdk/internal/access/JavaLangReflectAccess.java

Print this page

 85     //
 86 
 87     /** Makes a "child" copy of a Method */
 88     public Method      copyMethod(Method arg);
 89 
 90     /** Makes a copy of this non-root a Method */
 91     public Method      leafCopyMethod(Method arg);
 92 
 93     /** Makes a "child" copy of a Field */
 94     public Field       copyField(Field arg);
 95 
 96     /** Makes a "child" copy of a Constructor */
 97     public <T> Constructor<T> copyConstructor(Constructor<T> arg);
 98 
 99     /** Gets the root of the given AccessibleObject object; null if arg is the root */
100     public <T extends AccessibleObject> T getRoot(T obj);
101 
102     /** Tests if this is a trusted final field */
103     public boolean isTrustedFinalField(Field f);
104 




105     /** Returns a new instance created by the given constructor with access check */
106     public <T> T newInstance(Constructor<T> ctor, Object[] args, Class<?> caller)
107         throws IllegalAccessException, InstantiationException, InvocationTargetException;
108 }

 85     //
 86 
 87     /** Makes a "child" copy of a Method */
 88     public Method      copyMethod(Method arg);
 89 
 90     /** Makes a copy of this non-root a Method */
 91     public Method      leafCopyMethod(Method arg);
 92 
 93     /** Makes a "child" copy of a Field */
 94     public Field       copyField(Field arg);
 95 
 96     /** Makes a "child" copy of a Constructor */
 97     public <T> Constructor<T> copyConstructor(Constructor<T> arg);
 98 
 99     /** Gets the root of the given AccessibleObject object; null if arg is the root */
100     public <T extends AccessibleObject> T getRoot(T obj);
101 
102     /** Tests if this is a trusted final field */
103     public boolean isTrustedFinalField(Field f);
104 
105 
106     /** Tests if this is a null-restricted field */
107     public boolean isNullRestrictedField(Field f);
108 
109     /** Returns a new instance created by the given constructor with access check */
110     public <T> T newInstance(Constructor<T> ctor, Object[] args, Class<?> caller)
111         throws IllegalAccessException, InstantiationException, InvocationTargetException;
112 }
< prev index next >