author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Wed, 25 Jun 2014 22:50:33 +0200 | |
branch | defprop |
changeset 1636 | eb97a082741b |
parent 604 | 3fcc279c921b |
permissions | -rw-r--r-- |
jaroslav@604 | 1 |
/** |
jaroslav@604 | 2 |
* Back 2 Browser Bytecode Translator |
jaroslav@604 | 3 |
* Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
jaroslav@604 | 4 |
* |
jaroslav@604 | 5 |
* This program is free software: you can redistribute it and/or modify |
jaroslav@604 | 6 |
* it under the terms of the GNU General Public License as published by |
jaroslav@604 | 7 |
* the Free Software Foundation, version 2 of the License. |
jaroslav@604 | 8 |
* |
jaroslav@604 | 9 |
* This program is distributed in the hope that it will be useful, |
jaroslav@604 | 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
jaroslav@604 | 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
jaroslav@604 | 12 |
* GNU General Public License for more details. |
jaroslav@604 | 13 |
* |
jaroslav@604 | 14 |
* You should have received a copy of the GNU General Public License |
jaroslav@604 | 15 |
* along with this program. Look for COPYING file in the top folder. |
jaroslav@604 | 16 |
* If not, see http://opensource.org/licenses/GPL-2.0. |
jaroslav@604 | 17 |
*/ |
jaroslav@604 | 18 |
package org.apidesign.bck2brwsr.emul.reflect; |
jaroslav@604 | 19 |
|
jaroslav@604 | 20 |
import java.lang.reflect.Constructor; |
jaroslav@604 | 21 |
import java.lang.reflect.Type; |
jaroslav@604 | 22 |
import java.lang.reflect.TypeVariable; |
jaroslav@604 | 23 |
|
jaroslav@604 | 24 |
/** |
jaroslav@604 | 25 |
* |
jaroslav@604 | 26 |
* @author Jaroslav Tulach <jtulach@netbeans.org> |
jaroslav@604 | 27 |
*/ |
jaroslav@604 | 28 |
public abstract class TypeProvider { |
jaroslav@604 | 29 |
private TypeProvider() { |
jaroslav@604 | 30 |
} |
jaroslav@604 | 31 |
|
jaroslav@604 | 32 |
public static TypeProvider getDefault() { |
jaroslav@604 | 33 |
return null; |
jaroslav@604 | 34 |
} |
jaroslav@604 | 35 |
|
jaroslav@604 | 36 |
public abstract <T> TypeVariable<Constructor<T>>[] getTypeParameters(Constructor<T> c); |
jaroslav@604 | 37 |
public abstract <T> Type[] getGenericParameterTypes(Constructor<T> c); |
jaroslav@604 | 38 |
public abstract <T> Type[] getGenericExceptionTypes(Constructor<T> c); |
jaroslav@604 | 39 |
|
jaroslav@604 | 40 |
} |