< prev index next >

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

Print this page


   1 /*
   2  * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.internal.reflect;
  27 
  28 import java.lang.reflect.*;

  29 
  30 /** An interface which gives privileged packages Java-level access to
  31     internals of java.lang.reflect. */
  32 
  33 public interface LangReflectAccess {
  34     /** Creates a new java.lang.reflect.Field. Access checks as per
  35         java.lang.reflect.AccessibleObject are not overridden. */
  36     public Field newField(Class<?> declaringClass,
  37                           String name,
  38                           Class<?> type,
  39                           int modifiers,
  40                           int slot,
  41                           String signature,
  42                           byte[] annotations);
  43 
  44     /** Creates a new java.lang.reflect.Method. Access checks as per
  45       java.lang.reflect.AccessibleObject are not overridden. */
  46     public Method newMethod(Class<?> declaringClass,
  47                             String name,
  48                             Class<?>[] parameterTypes,
  49                             Class<?> returnType,
  50                             Class<?>[] checkedExceptions,
  51                             int modifiers,
  52                             int slot,
  53                             String signature,


   1 /*
   2  * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.internal.access;
  27 
  28 import java.lang.reflect.*;
  29 import jdk.internal.reflect.*;
  30 
  31 /** An interface which gives privileged packages Java-level access to
  32     internals of java.lang.reflect. */
  33 
  34 public interface JavaLangReflectAccess {
  35     /** Creates a new java.lang.reflect.Field. Access checks as per
  36         java.lang.reflect.AccessibleObject are not overridden. */
  37     public Field newField(Class<?> declaringClass,
  38                           String name,
  39                           Class<?> type,
  40                           int modifiers,
  41                           int slot,
  42                           String signature,
  43                           byte[] annotations);
  44 
  45     /** Creates a new java.lang.reflect.Method. Access checks as per
  46       java.lang.reflect.AccessibleObject are not overridden. */
  47     public Method newMethod(Class<?> declaringClass,
  48                             String name,
  49                             Class<?>[] parameterTypes,
  50                             Class<?> returnType,
  51                             Class<?>[] checkedExceptions,
  52                             int modifiers,
  53                             int slot,
  54                             String signature,


< prev index next >