C# Класс NVelocity.Util.Introspection.ClassMap

A cache of introspection information for a specific class instance. Keys {@link java.lang.Method} objects by a concatenation of the method name and the names of classes that make up the parameters.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetAccessibleMethods System.Reflection.MethodInfo[]
GetAccessibleProperties System.Reflection.PropertyInfo[]
MakeMethodKey String
MakeMethodKey String
PopulateMethodCache void
PopulatePropertyCache void

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

Метод Описание
ClassMap ( ) : System
ClassMap ( Type type ) : System

Standard constructor

FindMethod ( String name, Object parameters ) : MethodInfo

Find a Method using the methodKey provided. Look in the methodMap for an entry. If found, it'll either be a CACHE_MISS, in which case we simply give up, or it'll be a Method, in which case, we return it. If nothing is found, then we must actually go and introspect the method from the MethodMap.

FindProperty ( String name ) : PropertyInfo

Find a Method using the methodKey provided. Look in the methodMap for an entry. If found, it'll either be a CACHE_MISS, in which case we simply give up, or it'll be a Method, in which case, we return it. If nothing is found, then we must actually go and introspect the method from the MethodMap.

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

Метод Описание
GetAccessibleMethods ( Type type ) : System.Reflection.MethodInfo[]

Retrieves public methods for a class.

GetAccessibleProperties ( Type type ) : System.Reflection.PropertyInfo[]
MakeMethodKey ( MethodInfo method ) : String

Make a methodKey for the given method using the concatenation of the name and the types of the method parameters.

MakeMethodKey ( String method, Object parameters ) : String
PopulateMethodCache ( ) : void

Populate the Map of direct hits. These are taken from all the public methods that our class provides.

PopulatePropertyCache ( ) : void

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

ClassMap() публичный Метод

public ClassMap ( ) : System
Результат System

ClassMap() публичный Метод

Standard constructor
public ClassMap ( Type type ) : System
type System.Type
Результат System

FindMethod() публичный Метод

Find a Method using the methodKey provided. Look in the methodMap for an entry. If found, it'll either be a CACHE_MISS, in which case we simply give up, or it'll be a Method, in which case, we return it. If nothing is found, then we must actually go and introspect the method from the MethodMap.
public FindMethod ( String name, Object parameters ) : MethodInfo
name String
parameters Object
Результат System.Reflection.MethodInfo

FindProperty() публичный Метод

Find a Method using the methodKey provided. Look in the methodMap for an entry. If found, it'll either be a CACHE_MISS, in which case we simply give up, or it'll be a Method, in which case, we return it. If nothing is found, then we must actually go and introspect the method from the MethodMap.
public FindProperty ( String name ) : PropertyInfo
name String
Результат System.Reflection.PropertyInfo