C# Class System.Web.Compilation.TemplateControlCompiler

Inheritance: BaseCompiler
Mostrar archivo Open project: kumpera/mono

Private Properties

Property Type Description
AddBindableTemplateInvocation void
AddCodeForPropertyOrField void
AddCodeRender void
AddContentTemplateInvocation void
AddDataBindingLiteral void
AddEventAssign void
AddExpressionAssign void
AddLiteralSubObject void
AddParsedSubObjectStmt void
AddRenderControl void
AddTemplateInvocation void
AssignPropertiesFromResources void
AssignPropertiesFromResources void
AssignPropertyFromResources void
CallBaseFrameworkInitialize void
CallSetStringResourcePointer void
CheckBaseFieldOrProperty bool
CompileExpression System.CodeDom.CodeExpression
CreateApplicationInstance void
CreateAssignStatementFromAttribute void
CreateAutoEventWireup void
CreateAutoHandlers void
CreateBoundPropertyEntry System.Web.UI.BoundPropertyEntry
CreateConsoleWriteLineCall System.CodeDom.CodeMethodInvokeExpression
CreateContentPlaceHolderTemplateProperty void
CreateControlVariable System.CodeDom.CodeStatement
CreateConvertToCall System.CodeDom.CodeMethodInvokeExpression
CreateDBAttributeMethod void
CreateDBMethod System.CodeDom.CodeMemberMethod
CreateEvalInvokeExpression System.CodeDom.CodeExpression
CreateExtractValuesMethod string
CreateField void
CreateFrameworkInitializeMethod void
CreateNullableExpression System.CodeDom.CodeExpression
CreateProperties void
DataBoundProperty string
FlushText void
GenerateInstance System.CodeDom.CodeExpression
GenerateObjectInstance System.CodeDom.CodeExpression
GetContainerType System.Type
GetConverterForMember System.ComponentModel.TypeConverter
GetDefaultInstanceDescriptor System.ComponentModel.Design.Serialization.InstanceDescriptor
GetExpressionFromString System.CodeDom.CodeExpression
GetFieldOrProperty System.Reflection.MemberInfo
GetWrappedCodeExpression System.CodeDom.CodeExpression
InitMethod void
InvariantCompareNoCase bool
IsWritablePropertyOrField bool
ProcessPropertiesAndFields bool
ProcessTemplateChildren void
RegisterBindingInfo void
ResourceProviderHasObject bool
SafeCanConvertFrom bool
SafeCanConvertTo bool
SanitizeBindCall string
SetCustomAttribute void
SetCustomAttributes void
TrimDB string

Public Methods

Method Description
TemplateControlCompiler ( TemplateControlParser parser ) : System

Protected Methods

Method Description
AddApplicationAndSessionObjects ( ) : void
AddChildCall ( ControlBuilder parent, ControlBuilder child ) : void
AddStatementsToConstructor ( CodeConstructor ctor ) : void
AddStatementsToInitMethodBottom ( ControlBuilder builder, CodeMemberMethod method ) : void
AddStatementsToInitMethodTop ( ControlBuilder builder, CodeMemberMethod method ) : void
AppendStatementsToFrameworkInitialize ( CodeMemberMethod method ) : void
CreateAssignStatementsFromAttributes ( ControlBuilder builder ) : void
CreateControlTree ( ControlBuilder builder, bool inTemplate, bool childrenAsProperties ) : void
CreateMethods ( ) : void
CreateStaticFields ( ) : void
EnsureID ( ControlBuilder builder ) : void
HandleUrlProperty ( string str, MemberInfo member ) : string
InitializeType ( ) : void
PrependStatementsToFrameworkInitialize ( CodeMemberMethod method ) : void
ProcessObjectTag ( System.Web.UI.ObjectTagBuilder tag ) : void

Private Methods

Method Description
AddBindableTemplateInvocation ( ControlBuilder builder, string name, string methodName, string extractMethodName ) : void
AddCodeForPropertyOrField ( ControlBuilder builder, Type type, string var_name, string att, MemberInfo member, bool isDataBound, bool isExpression ) : void
AddCodeRender ( ControlBuilder parent, System.Web.UI.CodeRenderBuilder cr ) : void
AddContentTemplateInvocation ( System.Web.UI.WebControls.ContentBuilderInternal cbuilder, CodeMemberMethod method, string methodName ) : void
AddDataBindingLiteral ( ControlBuilder builder, System.Web.UI.DataBindingBuilder db ) : void
AddEventAssign ( CodeMemberMethod method, ControlBuilder builder, string name, Type type, string value ) : void
AddExpressionAssign ( CodeMemberMethod method, ControlBuilder builder, MemberInfo member, Type type, string name, string value ) : void
AddLiteralSubObject ( ControlBuilder builder, string str ) : void
AddParsedSubObjectStmt ( ControlBuilder builder, System.CodeDom.CodeExpression expr ) : void
AddRenderControl ( ControlBuilder builder ) : void
AddTemplateInvocation ( ControlBuilder builder, string name, string methodName ) : void
AssignPropertiesFromResources ( ControlBuilder builder, Type controlType, string attvalue ) : void
AssignPropertiesFromResources ( ControlBuilder builder, string attvalue ) : void
AssignPropertyFromResources ( ControlBuilder builder, MemberInfo mi, string attvalue ) : void
CallBaseFrameworkInitialize ( CodeMemberMethod method ) : void
CallSetStringResourcePointer ( CodeMemberMethod method ) : void
CheckBaseFieldOrProperty ( string id, Type type, MemberAttributes &ma ) : bool
CompileExpression ( MemberInfo member, Type type, string value, bool useSetAttribute ) : System.CodeDom.CodeExpression
CreateApplicationInstance ( ) : void
CreateAssignStatementFromAttribute ( ControlBuilder builder, string id ) : void
CreateAutoEventWireup ( ) : void
CreateAutoHandlers ( ) : void
CreateBoundPropertyEntry ( PropertyInfo pi, string prefix, string expr, bool useSetAttribute ) : System.Web.UI.BoundPropertyEntry
CreateConsoleWriteLineCall ( string format ) : CodeMethodInvokeExpression
CreateContentPlaceHolderTemplateProperty ( string backingField, string name ) : void
CreateControlVariable ( Type type, ControlBuilder builder, CodeMemberMethod method, CodeTypeReference ctrlTypeRef ) : CodeStatement
CreateConvertToCall ( TypeCode typeCode, System.CodeDom.CodeExpression expr ) : CodeMethodInvokeExpression
CreateDBAttributeMethod ( ControlBuilder builder, string attr, System.CodeDom.CodeExpression code ) : void
CreateDBMethod ( ControlBuilder builder, string name, Type container, Type target ) : CodeMemberMethod
CreateEvalInvokeExpression ( Regex regex, string value, bool isBind ) : System.CodeDom.CodeExpression
CreateExtractValuesMethod ( System.Web.UI.TemplateBuilder builder ) : string
CreateField ( ControlBuilder builder, bool check ) : void
CreateFrameworkInitializeMethod ( ) : void
CreateNullableExpression ( Type type, System.CodeDom.CodeExpression inst, bool nullable ) : System.CodeDom.CodeExpression
CreateProperties ( ) : void
DataBoundProperty ( ControlBuilder builder, Type type, string varName, string value ) : string
FlushText ( ControlBuilder builder, StringBuilder sb ) : void
GenerateInstance ( InstanceDescriptor idesc, bool throwOnError ) : System.CodeDom.CodeExpression
GenerateObjectInstance ( object value, bool throwOnError ) : System.CodeDom.CodeExpression
GetContainerType ( ControlBuilder builder ) : Type
GetConverterForMember ( MemberInfo member ) : TypeConverter
GetDefaultInstanceDescriptor ( object value ) : InstanceDescriptor
GetExpressionFromString ( Type type, string str, MemberInfo member ) : System.CodeDom.CodeExpression
GetFieldOrProperty ( Type type, string name ) : MemberInfo
GetWrappedCodeExpression ( System.Web.UI.CodeRenderBuilder cr ) : System.CodeDom.CodeExpression
InitMethod ( ControlBuilder builder, bool isTemplate, bool childrenAsProperties ) : void
InvariantCompareNoCase ( string a, string b ) : bool
IsWritablePropertyOrField ( MemberInfo member ) : bool
ProcessPropertiesAndFields ( ControlBuilder builder, MemberInfo member, string id, string attValue, string prefix ) : bool
ProcessTemplateChildren ( ControlBuilder builder ) : void
RegisterBindingInfo ( ControlBuilder builder, string propName, string &value ) : void
ResourceProviderHasObject ( string key ) : bool
SafeCanConvertFrom ( Type type, TypeConverter cvt ) : bool
SafeCanConvertTo ( Type type, TypeConverter cvt ) : bool
SanitizeBindCall ( Match match ) : string
SetCustomAttribute ( CodeMemberMethod method, System.Web.UI.UnknownAttributeDescriptor uad ) : void
SetCustomAttributes ( CodeMemberMethod method ) : void
TrimDB ( string value, bool trimTail ) : string

Method Details

AddApplicationAndSessionObjects() protected method

protected AddApplicationAndSessionObjects ( ) : void
return void

AddChildCall() protected method

protected AddChildCall ( ControlBuilder parent, ControlBuilder child ) : void
parent System.Web.UI.ControlBuilder
child System.Web.UI.ControlBuilder
return void

AddStatementsToConstructor() protected method

protected AddStatementsToConstructor ( CodeConstructor ctor ) : void
ctor System.CodeDom.CodeConstructor
return void

AddStatementsToInitMethodBottom() protected method

protected AddStatementsToInitMethodBottom ( ControlBuilder builder, CodeMemberMethod method ) : void
builder System.Web.UI.ControlBuilder
method System.CodeDom.CodeMemberMethod
return void

AddStatementsToInitMethodTop() protected method

protected AddStatementsToInitMethodTop ( ControlBuilder builder, CodeMemberMethod method ) : void
builder System.Web.UI.ControlBuilder
method System.CodeDom.CodeMemberMethod
return void

AppendStatementsToFrameworkInitialize() protected method

protected AppendStatementsToFrameworkInitialize ( CodeMemberMethod method ) : void
method System.CodeDom.CodeMemberMethod
return void

CreateAssignStatementsFromAttributes() protected method

protected CreateAssignStatementsFromAttributes ( ControlBuilder builder ) : void
builder System.Web.UI.ControlBuilder
return void

CreateControlTree() protected method

protected CreateControlTree ( ControlBuilder builder, bool inTemplate, bool childrenAsProperties ) : void
builder System.Web.UI.ControlBuilder
inTemplate bool
childrenAsProperties bool
return void

CreateMethods() protected method

protected CreateMethods ( ) : void
return void

CreateStaticFields() protected method

protected CreateStaticFields ( ) : void
return void

EnsureID() protected method

protected EnsureID ( ControlBuilder builder ) : void
builder System.Web.UI.ControlBuilder
return void

HandleUrlProperty() protected method

protected HandleUrlProperty ( string str, MemberInfo member ) : string
str string
member System.Reflection.MemberInfo
return string

InitializeType() protected method

protected InitializeType ( ) : void
return void

PrependStatementsToFrameworkInitialize() protected method

protected PrependStatementsToFrameworkInitialize ( CodeMemberMethod method ) : void
method System.CodeDom.CodeMemberMethod
return void

ProcessObjectTag() protected method

protected ProcessObjectTag ( System.Web.UI.ObjectTagBuilder tag ) : void
tag System.Web.UI.ObjectTagBuilder
return void

TemplateControlCompiler() public method

public TemplateControlCompiler ( TemplateControlParser parser ) : System
parser System.Web.UI.TemplateControlParser
return System