< prev index next >

src/java.base/share/classes/java/lang/reflect/Method.java

Print this page




 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;
 223     }
 224 
 225     /**
 226      * Returns the name of the method represented by this {@code Method}
 227      * object, as a {@code String}.
 228      */
 229     @Override
 230     public String getName() {
 231         return name;
 232     }
 233 
 234     /**
 235      * {@inheritDoc}
 236      */
 237     @Override
 238     public int getModifiers() {




 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
 218      * {@linkplain Class#asBoxType() the box type} of the class or interface
 219      * that declares the method represented by this object.
 220      *
 221      */
 222     @Override
 223     public Class<?> getDeclaringClass() {
 224         return clazz;
 225     }
 226 
 227     /**
 228      * Returns the name of the method represented by this {@code Method}
 229      * object, as a {@code String}.
 230      */
 231     @Override
 232     public String getName() {
 233         return name;
 234     }
 235 
 236     /**
 237      * {@inheritDoc}
 238      */
 239     @Override
 240     public int getModifiers() {


< prev index next >