1 /* 2 * Copyright (c) 2008, 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 java.lang.invoke; 27 28 import java.util.List; 29 30 public final 31 class MethodType implements java.io.Serializable { 32 33 public static methodType(Class<?> rtype, Class<?>[] ptypes)34 MethodType methodType(Class<?> rtype, Class<?>[] ptypes) { 35 return null; 36 } 37 38 public static methodType(Class<?> rtype, List<Class<?>> ptypes)39 MethodType methodType(Class<?> rtype, List<Class<?>> ptypes) { 40 return null; 41 } 42 43 public static methodType(Class<?> rtype, Class<?> ptype0, Class<?>... ptypes)44 MethodType methodType(Class<?> rtype, Class<?> ptype0, Class<?>... ptypes) { return null; } 45 46 public static methodType(Class<?> rtype)47 MethodType methodType(Class<?> rtype) { return null; } 48 49 public static methodType(Class<?> rtype, Class<?> ptype0)50 MethodType methodType(Class<?> rtype, Class<?> ptype0) { return null; } 51 52 public static methodType(Class<?> rtype, MethodType ptypes)53 MethodType methodType(Class<?> rtype, MethodType ptypes) { return null; } 54 55 public static genericMethodType(int objectArgCount, boolean finalArray)56 MethodType genericMethodType(int objectArgCount, boolean finalArray) { return null; } 57 58 public static genericMethodType(int objectArgCount)59 MethodType genericMethodType(int objectArgCount) { return null; } 60 changeParameterType(int num, Class<?> nptype)61 public MethodType changeParameterType(int num, Class<?> nptype) { return null; } 62 insertParameterTypes(int num, Class<?>... ptypesToInsert)63 public MethodType insertParameterTypes(int num, Class<?>... ptypesToInsert) { return null; } 64 appendParameterTypes(Class<?>.... ptypesToInsert)65 public MethodType appendParameterTypes(Class<?>... ptypesToInsert) { return null; } 66 insertParameterTypes(int num, List<Class<?>> ptypesToInsert)67 public MethodType insertParameterTypes(int num, List<Class<?>> ptypesToInsert) { return null; } 68 appendParameterTypes(List<Class<?>> ptypesToInsert)69 public MethodType appendParameterTypes(List<Class<?>> ptypesToInsert) { return null; } 70 dropParameterTypes(int start, int end)71 public MethodType dropParameterTypes(int start, int end) { return null; } 72 changeReturnType(Class<?> nrtype)73 public MethodType changeReturnType(Class<?> nrtype) { return null; } 74 hasPrimitives()75 public boolean hasPrimitives() { return false; } 76 hasWrappers()77 public boolean hasWrappers() { return false; } 78 erase()79 public MethodType erase() { return null; } 80 generic()81 public MethodType generic() { return null; } 82 wrap()83 public MethodType wrap() { return null; } 84 unwrap()85 public MethodType unwrap() { return null; } 86 parameterType(int num)87 public Class<?> parameterType(int num) { return null; } 88 parameterCount()89 public int parameterCount() { return 0; } 90 returnType()91 public Class<?> returnType() { return null; } 92 parameterList()93 public List<Class<?>> parameterList() { return null; } 94 parameterArray()95 public Class<?>[] parameterArray() { return null; } 96 fromMethodDescriptorString(String descriptor, ClassLoader loader)97 public static MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader) 98 throws IllegalArgumentException, TypeNotPresentException { return null; } 99 toMethodDescriptorString()100 public String toMethodDescriptorString() { return null; } 101 102 } 103