public class TypeLoader
Class responsible for loading types in the reflection system.
Loading delegates to the system class loader and reports an unresolved name with TypeNotFoundException, rather than exposing placeholder metadata.
import klyn.reflection
loader = TypeLoader()
assert loader.load("klyn.String") == String.type| Modifier and Type | Member | Description |
|---|---|---|
| public static | attributeAnnotationArgumentCount | No summary. |
| public static | attributeAnnotationArgumentName | No summary. |
| public static | attributeAnnotationArgumentType | No summary. |
| public static | attributeAnnotationArgumentValue | No summary. |
| public static | attributeAnnotationCount | Returns the number of annotations on a reflected attribute. |
| public static | attributeAnnotationName | Returns one annotation name on a reflected attribute. |
| public static | attributeCount | No summary. |
| public static | attributeFlags | No summary. |
| public static | attributeName | No summary. |
| public static | attributeType | No summary. |
| public static | constructorAnnotationArgumentCount | No summary. |
| public static | constructorAnnotationArgumentName | No summary. |
| public static | constructorAnnotationArgumentType | No summary. |
| public static | constructorAnnotationArgumentValue | No summary. |
| public static | constructorAnnotationCount | No summary. |
| public static | constructorAnnotationName | No summary. |
| public static | constructorCount | No summary. |
| public static | constructorFlags | No summary. |
| public static | constructorMaxArity | No summary. |
| public static | constructorMinArity | No summary. |
| public static | constructorParameterAnnotationArgumentCount | No summary. |
| public static | constructorParameterAnnotationArgumentName | No summary. |
| public static | constructorParameterAnnotationArgumentType | No summary. |
| public static | constructorParameterAnnotationArgumentValue | No summary. |
| public static | constructorParameterAnnotationCount | No summary. |
| public static | constructorParameterAnnotationName | No summary. |
| public static | constructorParameterCount | No summary. |
| public static | constructorParameterName | No summary. |
| public static | constructorParameterType | No summary. |
| public | loadload(name as String) as Type throws TypeNotFoundException |
Method to load a type by its name. |
| public static | methodAnnotationArgumentCount | No summary. |
| public static | methodAnnotationArgumentCountAt | Returns an annotation argument count for one exact method overload. |
| public static | methodAnnotationArgumentName | No summary. |
| public static | methodAnnotationArgumentNameAt | Returns an annotation argument name for one exact overload. |
| public static | methodAnnotationArgumentType | No summary. |
| public static | methodAnnotationArgumentTypeAt | Returns an annotation argument type for one exact overload. |
| public static | methodAnnotationArgumentValue | No summary. |
| public static | methodAnnotationArgumentValueAt | Returns an annotation argument value for one exact overload. |
| public static | methodAnnotationCount | Reflection helper: returns the number of annotations on a method. |
| public static | methodAnnotationCountAt | Returns the annotation count for one exact method overload. |
| public static | methodAnnotationName | Reflection helper: returns method annotation name by index. |
| public static | methodAnnotationNameAt | Returns an annotation name for one exact method overload. |
| public static | methodCount | Reflection helper: returns the number of methods declared on a type. |
| public static | methodFlags | No summary. |
| public static | methodName | Reflection helper: returns method name by index. |
| public static | methodParameterAnnotationArgumentCount | No summary. |
| public static | methodParameterAnnotationArgumentCountAt | Returns a parameter annotation argument count for an exact overload. |
| public static | methodParameterAnnotationArgumentName | No summary. |
| public static | methodParameterAnnotationArgumentNameAt | Returns a parameter annotation argument name for an exact overload. |
| public static | methodParameterAnnotationArgumentType | No summary. |
| public static | methodParameterAnnotationArgumentTypeAt | Returns a parameter annotation argument type for an exact overload. |
| public static | methodParameterAnnotationArgumentValue | No summary. |
| public static | methodParameterAnnotationArgumentValueAt | Returns a parameter annotation argument value for an exact overload. |
| public static | methodParameterAnnotationCount | Reflection helper: returns the number of annotations on a method parameter. |
| public static | methodParameterAnnotationCountAt | Returns the annotation count for one parameter of an exact overload. |
| public static | methodParameterAnnotationName | Reflection helper: returns parameter annotation name by index. |
| public static | methodParameterAnnotationNameAt | Returns one parameter annotation name for an exact overload. |
| public static | methodParameterCount | Reflection helper: returns the number of parameters of a method. |
| public static | methodParameterCountAt | Returns the parameter count for one exact method overload. |
| public static | methodParameterName | Reflection helper: returns parameter name by index. |
| public static | methodParameterNameAt | Returns a parameter name for one exact method overload. |
| public static | methodParameterType | Reflection helper: returns parameter type by index. |
| public static | methodParameterTypeAt | Returns a parameter type for one exact method overload. |
| public static | methodReturnType | Reflection helper: returns method return type by index. |
| public static | methodTypeAt | Resolves a registered method signature in its declaration scope. |
| public static | propertyAnnotationArgumentCount | No summary. |
| public static | propertyAnnotationArgumentName | No summary. |
| public static | propertyAnnotationArgumentType | No summary. |
| public static | propertyAnnotationArgumentValue | No summary. |
| public static | propertyAnnotationCount | Returns the number of annotations on a reflected property. |
| public static | propertyAnnotationName | Returns one annotation name on a reflected property. |
| public static | propertyCount | No summary. |
| public static | propertyFlags | No summary. |
| public static | propertyName | No summary. |
| public static | propertyType | No summary. |
| public static | typeAnnotationArgumentCount | No summary. |
| public static | typeAnnotationArgumentName | No summary. |
| public static | typeAnnotationArgumentType | No summary. |
| public static | typeAnnotationArgumentValue | No summary. |
| public static | typeAnnotationCount | No summary. |
| public static | typeAnnotationName | No summary. |
| public static | typeCounttypeCount() as ULong |
Returns the number of types currently known by runtime reflection. |
| public static | typeFlags | Returns raw modifier flags for a reflected type by index. |
| public static | typeFullName | Returns the full name of a reflected type by index. |
| public static | typeGenericArgumentCount | Returns the number of concrete generic arguments of a reflected type. |
| public static | typeGenericArgumentName | Returns one concrete generic argument name. |
| public static | typeGenericDefinition | Returns the generic definition of a concrete reflected type. |
| public static | typeGenericParameterCount | No summary. |
| public static | typeGenericParameterName | No summary. |
| public static | typeName | Returns the short name of a reflected type by index. |
| public static | typeSuperName | Returns the direct super-type name of a reflected type by index. |