Lines Matching defs:MethodType

53  * All instances of {@code MethodType} are immutable.
68 * {@code MethodType} objects are sometimes derived from bytecode instructions
79 * When the JVM materializes a {@code MethodType} from a descriptor string,
82 * This loading may occur at any time before the {@code MethodType} object is first derived.
86 class MethodType implements java.io.Serializable {
95 private MethodType wrapAlt; // alternative wrapped/unwrapped version
101 private MethodType(Class<?> rtype, Class<?>[] ptypes) {
187 MethodType methodType(Class<?> rtype, Class<?>[] ptypes) {
199 MethodType methodType(Class<?> rtype, List<Class<?>> ptypes) {
219 MethodType methodType(Class<?> rtype, Class<?> ptype0, Class<?>... ptypes) {
234 MethodType methodType(Class<?> rtype) {
247 MethodType methodType(Class<?> rtype, Class<?> ptype0) {
259 MethodType methodType(Class<?> rtype, MethodType ptypes) {
271 MethodType makeImpl(Class<?> rtype, Class<?>[] ptypes, boolean trusted) {
275 MethodType mt1 = new MethodType(rtype, ptypes);
276 MethodType mt0 = internTable.get(mt1);
281 mt1 = new MethodType(rtype, ptypes.clone());
287 private static final MethodType[] objectOnlyTypes = new MethodType[20];
301 MethodType genericMethodType(int objectArgCount, boolean finalArray) {
302 MethodType mt;
330 MethodType genericMethodType(int objectArgCount) {
344 public MethodType changeParameterType(int num, Class<?> nptype) {
363 public MethodType insertParameterTypes(int num, Class<?>... ptypesToInsert) {
386 public MethodType appendParameterTypes(Class<?>... ptypesToInsert) {
401 public MethodType insertParameterTypes(int num, List<Class<?>> ptypesToInsert) {
414 public MethodType appendParameterTypes(List<Class<?>> ptypesToInsert) {
432 /*non-public*/ MethodType replaceParameterTypes(int start, int end, Class<?>... ptypesToInsert) {
454 public MethodType dropParameterTypes(int start, int end) {
488 public MethodType changeReturnType(Class<?> nrtype) {
519 public MethodType erase() {
529 /*non-public*/ MethodType basicType() {
536 /*non-public*/ MethodType invokerType() {
547 public MethodType generic() {
560 public MethodType wrap() {
571 public MethodType unwrap() {
572 MethodType noprims = !hasPrimitives() ? this : wrapWithPrims(this);
576 private static MethodType wrapWithPrims(MethodType pt) {
578 MethodType wt = pt.wrapAlt;
588 private static MethodType unwrapWithNoPrims(MethodType wt) {
590 MethodType uwt = wt.wrapAlt;
657 return this == x || x instanceof MethodType && equals((MethodType)x);
660 private boolean equals(MethodType that) {
708 boolean isViewableAs(MethodType newType) {
721 boolean isCastableTo(MethodType newType) {
728 boolean isConvertibleTo(MethodType newType) {
879 public static MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader)
917 * There are no serializable fields for {@code MethodType}.
922 * Save the {@code MethodType} instance to a stream.
947 * Reconstitute the {@code MethodType} instance from a stream (that is,
954 * @see #MethodType()
977 private MethodType() {
995 (MethodType.class.getDeclaredField("rtype"));
997 (MethodType.class.getDeclaredField("ptypes"));
1004 * Resolves and initializes a {@code MethodType} object
1006 * @return the fully initialized {@code MethodType} object
1154 synchronized MethodType get(MethodType value) {
1159 MethodType g;
1177 synchronized MethodType add(MethodType value) {
1181 MethodType g;
1245 MethodType key = e.get();
1263 private static class Entry extends WeakReference<MethodType> {
1270 Entry(MethodType key,