TypeLoader
classin packageklyn.reflection
public class TypeLoader
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.

Example
import klyn.reflection

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