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