![JAR search and dependency download from the Maven repository](/logo.png)
com.google.gwt.reflect.rebind.JvmMemberPool Maven / Gradle / Ivy
package com.google.gwt.reflect.rebind;
import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import com.google.gwt.reflect.shared.MemberPool;
public class JvmMemberPool implements MemberPool{
private final Class type;
public JvmMemberPool(Class type) {
this.type = type;
}
@Override
public A getAnnotation(Class annoCls) {
return type.getAnnotation(annoCls);
}
@Override
public Annotation[] getAnnotations() {
return type.getAnnotations();
}
@Override
public Annotation[] getDeclaredAnnotations() {
return type.getDeclaredAnnotations();
}
@Override
public Constructor getConstructor(Class> ... params) throws NoSuchMethodException {
return type.getConstructor(params);
}
@Override
public Constructor getDeclaredConstructor(Class> ... params) throws NoSuchMethodException {
return type.getDeclaredConstructor(params);
}
@Override
@SuppressWarnings("unchecked")
public Constructor[] getConstructors() {
return (Constructor[])type.getConstructors();
}
@Override
@SuppressWarnings("unchecked")
public Constructor[] getDeclaredConstructors() {
return (Constructor[])type.getDeclaredConstructors();
}
@Override
public Field getField(String name) throws NoSuchFieldException {
return type.getField(name);
}
@Override
public Field getDeclaredField(String name) throws NoSuchFieldException {
return type.getDeclaredField(name);
}
@Override
public Field[] getFields() {
return type.getFields();
}
@Override
public Field[] getDeclaredFields() {
return type.getDeclaredFields();
}
@Override
public Method getMethod(String name, Class> ... params) throws NoSuchMethodException {
return type.getMethod(name, params);
}
@Override
public Method getDeclaredMethod(String name, Class> ... params) throws NoSuchMethodException {
return type.getDeclaredMethod(name, params);
}
@Override
public Method[] getMethods() {
return type.getMethods();
}
@Override
public Method[] getDeclaredMethods() {
return type.getDeclaredMethods();
}
@Override
@SuppressWarnings({"rawtypes", "unchecked"})
public MemberPool super T> getSuperclass() {
return new JvmMemberPool(type.getSuperclass());
}
@Override
public Class>[] getInterfaces() {
return type.getInterfaces();
}
@Override
public Class>[] getClasses() {
return type.getClasses();
}
@Override
public Class getType() {
return type;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy