C# Класс clojure.lang.Reflector

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BoxArgs ( ParameterInfo pinfos, object args ) : object[]
CallInstanceMethod ( string methodName, IList typeArgs, object target ) : object
CallMethod ( string methodName, IList typeArgs, bool isStatic, Type t, object target ) : object
CallStaticMethod ( string methodName, IList typeArgs, Type t ) : object
GetArityZeroMethod ( Type t, string name, bool getStatics ) : MethodInfo
GetField ( Type t, String name, bool getStatics ) : FieldInfo
GetInstanceFieldOrProperty ( object target, string fieldName ) : object
GetMatchingMethod ( IPersistentMap spanMap, clojure.lang.CljCompiler.Ast.Expr target, IList args, string methodName, IList typeArgs ) : MethodInfo

Parse-time lookup of instance method

GetMatchingMethod ( IPersistentMap spanMap, Type targetType, IList args, string methodName, IList typeArgs ) : MethodInfo

Parse-time lookup of static method

GetProperty ( Type t, String name, bool getStatics ) : PropertyInfo
InvokeConstructor ( Type t, object args ) : object
InvokeStaticMethod ( String typeName, String methodName, Object args ) : Object
InvokeStaticMethod ( Type t, String methodName, Object args ) : Object
SetInstanceFieldOrProperty ( object target, string fieldName, object val ) : object

Приватные методы

Метод Описание
AreAssignable ( Type dest, Type src ) : bool
AreReferenceAssignable ( Type dest, Type src ) : bool
BoxArg ( ParameterInfo pinfo, object arg ) : object
ExpandArrayTypename ( Type t ) : string
ExprsTypes ( IList args ) : List
GetConstructors ( Type targetType, int arity ) : IList
GetInterfaceMethods ( Type targetType, string methodName, IList typeArgs, int arity ) : List
GetMatchingConstructor ( IPersistentMap spanMap, Type targetType, IList args, int &ctorCount ) : ConstructorInfo

Get constructor matching args for type.

GetMatchingMethodAux ( Type targetType, IList args, IList methods, string methodName, bool isStatic ) : MethodBase

Select matching method from list based on args.

GetMatchingMethodAux ( Type targetType, object actualArgs, IList methods, string methodName, bool isStatic ) : MethodBase
GetMethods ( Type targetType, string methodName, IList typeArgs, int arity, bool getStatics ) : IList

Get methods of fixed name and arity.

InvokeMatchingMethod ( string methodName, IList infos, Type t, object target, object args ) : object
InvokeMethod ( MethodInfo info, object target, object args ) : object
IsCongruent ( ParameterInfo pinfos, object args ) : bool
MaybeReflectionWarn ( IPersistentMap spanMap, MethodBase method, string methodName, IList args ) : void
ParamArgTypeMatch ( Type paramType, Type argType ) : bool
SignatureString ( List classes ) : string
Subsumes ( ParameterInfo c1, ParameterInfo c2 ) : bool
prepRet ( Type t, Object x ) : Object

Описание методов

BoxArgs() публичный статический Метод

public static BoxArgs ( ParameterInfo pinfos, object args ) : object[]
pinfos System.Reflection.ParameterInfo
args object
Результат object[]

CallInstanceMethod() публичный статический Метод

public static CallInstanceMethod ( string methodName, IList typeArgs, object target ) : object
methodName string
typeArgs IList
target object
Результат object

CallMethod() публичный статический Метод

public static CallMethod ( string methodName, IList typeArgs, bool isStatic, Type t, object target ) : object
methodName string
typeArgs IList
isStatic bool
t System.Type
target object
Результат object

CallStaticMethod() публичный статический Метод

public static CallStaticMethod ( string methodName, IList typeArgs, Type t ) : object
methodName string
typeArgs IList
t System.Type
Результат object

GetArityZeroMethod() публичный статический Метод

public static GetArityZeroMethod ( Type t, string name, bool getStatics ) : MethodInfo
t System.Type
name string
getStatics bool
Результат System.Reflection.MethodInfo

GetField() публичный статический Метод

public static GetField ( Type t, String name, bool getStatics ) : FieldInfo
t System.Type
name String
getStatics bool
Результат System.Reflection.FieldInfo

GetInstanceFieldOrProperty() публичный статический Метод

public static GetInstanceFieldOrProperty ( object target, string fieldName ) : object
target object
fieldName string
Результат object

GetMatchingMethod() публичный статический Метод

Parse-time lookup of instance method
public static GetMatchingMethod ( IPersistentMap spanMap, clojure.lang.CljCompiler.Ast.Expr target, IList args, string methodName, IList typeArgs ) : MethodInfo
spanMap IPersistentMap
target clojure.lang.CljCompiler.Ast.Expr
args IList
methodName string
typeArgs IList
Результат System.Reflection.MethodInfo

GetMatchingMethod() публичный статический Метод

Parse-time lookup of static method
public static GetMatchingMethod ( IPersistentMap spanMap, Type targetType, IList args, string methodName, IList typeArgs ) : MethodInfo
spanMap IPersistentMap
targetType System.Type
args IList
methodName string
typeArgs IList
Результат System.Reflection.MethodInfo

GetProperty() публичный статический Метод

public static GetProperty ( Type t, String name, bool getStatics ) : PropertyInfo
t System.Type
name String
getStatics bool
Результат System.Reflection.PropertyInfo

InvokeConstructor() публичный статический Метод

public static InvokeConstructor ( Type t, object args ) : object
t System.Type
args object
Результат object

InvokeStaticMethod() публичный статический Метод

public static InvokeStaticMethod ( String typeName, String methodName, Object args ) : Object
typeName String
methodName String
args Object
Результат Object

InvokeStaticMethod() публичный статический Метод

public static InvokeStaticMethod ( Type t, String methodName, Object args ) : Object
t System.Type
methodName String
args Object
Результат Object

SetInstanceFieldOrProperty() публичный статический Метод

public static SetInstanceFieldOrProperty ( object target, string fieldName, object val ) : object
target object
fieldName string
val object
Результат object