C# 클래스 clojure.lang.Reflector

파일 보기 프로젝트 열기: richhickey/clojure-clr 1 사용 예제들

공개 메소드들

메소드 설명
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