/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang; import java.io.InputStream; import java.io.Serializable; import java.lang.annotation.Annotation; import java.lang.reflect.AnnotatedElement; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.GenericDeclaration; import java.lang.reflect.Method; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; import java.net.URL; import java.security.ProtectionDomain; public final class Class extends Object implements Serializable, GenericDeclaration, Type, AnnotatedElement { native public String toString(); native public static Class forName(String className) throws ClassNotFoundException; native public static Class forName(String name, boolean initialize, ClassLoader loader) throws ClassNotFoundException; native public T newInstance() throws InstantiationException, IllegalAccessException; native public boolean isInstance(Object obj); native public boolean isAssignableFrom(Class cls); native public boolean isInterface(); native public boolean isArray(); native public boolean isPrimitive(); native public boolean isAnnotation(); native public boolean isSynthetic(); native public String getName(); native public ClassLoader getClassLoader(); native public TypeVariable>[] getTypeParameters(); native public Class getSuperclass(); native public Type getGenericSuperclass(); native public Package getPackage(); native public Class[] getInterfaces(); native public Type[] getGenericInterfaces(); native public Class getComponentType(); native public int getModifiers(); native public Object[] getSigners(); native public Method getEnclosingMethod(); native public Constructor getEnclosingConstructor(); native public Class getDeclaringClass(); native public Class getEnclosingClass(); native public String getSimpleName(); native public String getCanonicalName(); native public boolean isAnonymousClass(); native public boolean isLocalClass(); native public boolean isMemberClass(); native public Class[] getClasses(); native public Field[] getFields() throws SecurityException; native public Method[] getMethods() throws SecurityException; native public Constructor[] getConstructors() throws SecurityException; native public Field getField(String name) throws NoSuchFieldException, SecurityException; native public Method getMethod(String name, Class... parameterTypes) throws NoSuchMethodException, SecurityException; native public Constructor getConstructor(Class... parameterTypes) throws NoSuchMethodException, SecurityException; native public Class[] getDeclaredClasses() throws SecurityException; native public Field[] getDeclaredFields() throws SecurityException; native public Method[] getDeclaredMethods() throws SecurityException; native public Constructor[] getDeclaredConstructors() throws SecurityException; native public Field getDeclaredField(String name) throws NoSuchFieldException, SecurityException; native public Method getDeclaredMethod(String name, Class... parameterTypes) throws NoSuchMethodException, SecurityException; native public Constructor getDeclaredConstructor(Class... parameterTypes) throws NoSuchMethodException, SecurityException; native public InputStream getResourceAsStream(String name); native public URL getResource(String name); native public ProtectionDomain getProtectionDomain(); native public boolean desiredAssertionStatus(); native public boolean isEnum(); native public T[] getEnumConstants(); native public T cast(Object obj); native public Class asSubclass(Class clazz); native public A getAnnotation( Class annotationClass); native public boolean isAnnotationPresent( Class annotationClass); native public Annotation[] getAnnotations(); native public Annotation[] getDeclaredAnnotations(); private Class() { } }