181 return res;
182 }
183
184 /**
185 * @throws InaccessibleObjectException {@inheritDoc}
186 * @throws SecurityException {@inheritDoc}
187 */
188 @Override
189 @CallerSensitive
190 public void setAccessible(boolean flag) {
191 AccessibleObject.checkPermission();
192 if (flag) checkCanSetAccessible(Reflection.getCallerClass());
193 setAccessible0(flag);
194 }
195
196 @Override
197 void checkCanSetAccessible(Class<?> caller) {
198 checkCanSetAccessible(caller, clazz);
199 }
200
201 /**
202 * Used by Excecutable for annotation sharing.
203 */
204 @Override
205 Executable getRoot() {
206 return root;
207 }
208
209 @Override
210 boolean hasGenericInformation() {
211 return (getGenericSignature() != null);
212 }
213
214 @Override
215 byte[] getAnnotationBytes() {
216 return annotations;
217 }
218
219 /**
220 * Returns the {@code Class} object representing the class or interface
221 * that declares the method represented by this object.
222 */
223 @Override
224 public Class<?> getDeclaringClass() {
225 return clazz;
|
181 return res;
182 }
183
184 /**
185 * @throws InaccessibleObjectException {@inheritDoc}
186 * @throws SecurityException {@inheritDoc}
187 */
188 @Override
189 @CallerSensitive
190 public void setAccessible(boolean flag) {
191 AccessibleObject.checkPermission();
192 if (flag) checkCanSetAccessible(Reflection.getCallerClass());
193 setAccessible0(flag);
194 }
195
196 @Override
197 void checkCanSetAccessible(Class<?> caller) {
198 checkCanSetAccessible(caller, clazz);
199 }
200
201 @Override
202 Method getRoot() {
203 return root;
204 }
205
206 @Override
207 boolean hasGenericInformation() {
208 return (getGenericSignature() != null);
209 }
210
211 @Override
212 byte[] getAnnotationBytes() {
213 return annotations;
214 }
215
216 /**
217 * Returns the {@code Class} object representing the class or interface
218 * that declares the method represented by this object.
219 */
220 @Override
221 public Class<?> getDeclaringClass() {
222 return clazz;
|