< prev index next >

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

Print this page




 130 
 131     public byte[] getExecutableTypeAnnotationBytes(Executable ex) {
 132         return ex.getTypeAnnotationBytes();
 133     }
 134 
 135     //
 136     // Copying routines, needed to quickly fabricate new Field,
 137     // Method, and Constructor objects from templates
 138     //
 139     public Method      copyMethod(Method arg) {
 140         return arg.copy();
 141     }
 142 
 143     public Field       copyField(Field arg) {
 144         return arg.copy();
 145     }
 146 
 147     public <T> Constructor<T> copyConstructor(Constructor<T> arg) {
 148         return arg.copy();
 149     }











 150 }


 130 
 131     public byte[] getExecutableTypeAnnotationBytes(Executable ex) {
 132         return ex.getTypeAnnotationBytes();
 133     }
 134 
 135     //
 136     // Copying routines, needed to quickly fabricate new Field,
 137     // Method, and Constructor objects from templates
 138     //
 139     public Method      copyMethod(Method arg) {
 140         return arg.copy();
 141     }
 142 
 143     public Field       copyField(Field arg) {
 144         return arg.copy();
 145     }
 146 
 147     public <T> Constructor<T> copyConstructor(Constructor<T> arg) {
 148         return arg.copy();
 149     }
 150 
 151     //
 152     // Comparing / Hashing Method parameter types
 153     //
 154     public boolean methodParameterTypesEquals(Method method1, Method method2) {
 155         return method1.parameterTypesEquals(method2);
 156     }
 157 
 158     public int methodParameterTypesHashCode(Method method) {
 159         return method.parameterTypesHashCode();
 160     }
 161 }
< prev index next >