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 "<init>"}. |
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) { |