W3cubDocs

/Haxe Java

Class<T>

package java.lang

implements AnnotatedElement, Type, GenericDeclaration, Serializable

@:final@:libType@:javaNative@:native("java.lang.Class")@:javaCanonical("java.lang","Class") Available on java

Methods

@:native("cast") @:overload _cast (param1:Dynamic):T

@:overload asSubclass<U> (param1:Class<U>):Class<U>

@:overload desiredAssertionStatus ():Bool

@:overload getAnnotation<A> (param1:Class<A>):A

@:overload getAnnotations ():NativeArray<Annotation>

@:overload getCanonicalName ():String

@:overload getClassLoader ():ClassLoader

@:overload getClasses ():NativeArray<Class<Dynamic>>

@:overload getComponentType ():Class<Dynamic>

@:overload @:throws("java.lang.SecurityException") @:throws("java.lang.NoSuchMethodException") getConstructor (param1:NativeArray<Class<Dynamic>>):Constructor<T>

@:overload @:throws("java.lang.SecurityException") getConstructors ():NativeArray<Constructor<Dynamic>>

@:overload getDeclaredAnnotations ():NativeArray<Annotation>

@:overload @:throws("java.lang.SecurityException") getDeclaredClasses ():NativeArray<Class<Dynamic>>

@:overload @:throws("java.lang.SecurityException") @:throws("java.lang.NoSuchMethodException") getDeclaredConstructor (param1:NativeArray<Class<Dynamic>>):Constructor<T>

@:overload @:throws("java.lang.SecurityException") getDeclaredConstructors ():NativeArray<Constructor<Dynamic>>

@:overload @:throws("java.lang.SecurityException") @:throws("java.lang.NoSuchFieldException") getDeclaredField (param1:String):Field

@:overload @:throws("java.lang.SecurityException") getDeclaredFields ():NativeArray<Field>

@:overload @:throws("java.lang.SecurityException") @:throws("java.lang.NoSuchMethodException") getDeclaredMethod (param1:String, param2:NativeArray<Class<Dynamic>>):Method

@:overload @:throws("java.lang.SecurityException") getDeclaredMethods ():NativeArray<Method>

@:overload getDeclaringClass ():Class<Dynamic>

@:overload getEnclosingClass ():Class<Dynamic>

@:overload getEnclosingConstructor ():Constructor<Dynamic>

@:overload getEnclosingMethod ():Method

@:overload getEnumConstants ():NativeArray<T>

@:overload @:throws("java.lang.SecurityException") @:throws("java.lang.NoSuchFieldException") getField (param1:String):Field

@:overload @:throws("java.lang.SecurityException") getFields ():NativeArray<Field>

@:overload getGenericInterfaces ():NativeArray<Type>

@:overload getGenericSuperclass ():Type

@:overload getInterfaces ():NativeArray<Class<Dynamic>>

@:overload @:throws("java.lang.SecurityException") @:throws("java.lang.NoSuchMethodException") getMethod (param1:String, param2:NativeArray<Class<Dynamic>>):Method

@:overload @:throws("java.lang.SecurityException") getMethods ():NativeArray<Method>

@:overload getModifiers ():Int

@:overload getName ():String

@:overload getPackage ():Package

@:overload getProtectionDomain ():ProtectionDomain

@:overload getResource (param1:String):URL

@:overload getResourceAsStream (param1:String):InputStream

@:overload getSigners ():NativeArray<Dynamic>

@:overload getSimpleName ():String

@:overload getSuperclass ():Class<Dynamic>

@:overload getTypeParameters ():NativeArray<TypeVariable<Class<T>>>

@:overload isAnnotation ():Bool

@:overload isAnnotationPresent (param1:Class<Annotation>):Bool

@:overload isAnonymousClass ():Bool

@:overload isArray ():Bool

@:overload isAssignableFrom (param1:Class<Dynamic>):Bool

@:overload isEnum ():Bool

@:overload isInstance (param1:Dynamic):Bool

@:overload isInterface ():Bool

@:overload isLocalClass ():Bool

@:overload isMemberClass ():Bool

@:overload isPrimitive ():Bool

@:overload isSynthetic ():Bool

@:overload @:throws("java.lang.IllegalAccessException") @:throws("java.lang.InstantiationException") newInstance ():T

@:overload toString ():String

Static methods

@:overload @:throws("java.lang.ClassNotFoundException") static forName (param1:String, param2:Bool, param3:ClassLoader):Class<Dynamic>

@:overload @:throws("java.lang.ClassNotFoundException") static forName (param1:String):Class<Dynamic>

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/java/lang/Class.html