Lines Matching refs:descriptor
69 * such as {@code invokedynamic}, specifically from the type descriptor strings associated
76 * The entry refers to a {@code CONSTANT_Utf8} spelling for the descriptor string.
79 * When the JVM materializes a {@code MethodType} from a descriptor string,
80 * all classes named in the descriptor must be accessible, and will be loaded.
860 * Finds or creates an instance of a method type, given the spelling of its bytecode descriptor.
862 * Any class or interface name embedded in the descriptor string
872 * @param descriptor a bytecode-level type descriptor string "(T...)T"
874 * @return a method type matching the bytecode-level type descriptor
879 public static MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader)
882 if (!descriptor.startsWith("(") || // also generates NPE if needed
883 descriptor.indexOf(')') < 0 ||
884 descriptor.indexOf('.') >= 0)
885 throw new IllegalArgumentException("not a method descriptor: "+descriptor);
886 List<Class<?>> types = BytecodeDescriptor.parseMethod(descriptor, loader);
894 * Produces a bytecode descriptor representation of the method type.
898 * will appear identical when viewed within descriptor strings.
904 * @return the bytecode type descriptor representation