jdk/src/java.base/share/classes/java/lang/invoke/MemberName.java
changeset 32276 2d5fcc89e099
parent 29094 a4fd2b5e49f8
child 32986 ea54ac8672e7
equal deleted inserted replaced
32275:17eeb583a331 32276:2d5fcc89e099
    91     }
    91     }
    92 
    92 
    93     /** Return the simple name of this member.
    93     /** Return the simple name of this member.
    94      *  For a type, it is the same as {@link Class#getSimpleName}.
    94      *  For a type, it is the same as {@link Class#getSimpleName}.
    95      *  For a method or field, it is the simple name of the member.
    95      *  For a method or field, it is the simple name of the member.
    96      *  For a constructor, it is always {@code "<init>"}.
    96      *  For a constructor, it is always {@code "<init>"}.
    97      */
    97      */
    98     public String getName() {
    98     public String getName() {
    99         if (name == null) {
    99         if (name == null) {
   100             expandFromVM();
   100             expandFromVM();
   101             if (name == null) {
   101             if (name == null) {
   725         init(defClass, name, type, flagsMods(IS_FIELD, 0, refKind));
   725         init(defClass, name, type, flagsMods(IS_FIELD, 0, refKind));
   726         initResolved(false);
   726         initResolved(false);
   727     }
   727     }
   728     /** Create a method or constructor name from the given components:
   728     /** Create a method or constructor name from the given components:
   729      *  Declaring class, name, type, reference kind.
   729      *  Declaring class, name, type, reference kind.
   730      *  It will be a constructor if and only if the name is {@code "&lt;init&gt;"}.
   730      *  It will be a constructor if and only if the name is {@code "<init>"}.
   731      *  The declaring class may be supplied as null if this is to be a bare name and type.
   731      *  The declaring class may be supplied as null if this is to be a bare name and type.
   732      *  The last argument is optional, a boolean which requests REF_invokeSpecial.
   732      *  The last argument is optional, a boolean which requests REF_invokeSpecial.
   733      *  The resulting name will in an unresolved state.
   733      *  The resulting name will in an unresolved state.
   734      */
   734      */
   735     public MemberName(Class<?> defClass, String name, MethodType type, byte refKind) {
   735     public MemberName(Class<?> defClass, String name, MethodType type, byte refKind) {