wx.NetMacros.Generator Class Reference

List of all members.

Public Member Functions

void AddModifier (MethodCall mc)
void AddSetter (SetterCall sc)
 Generator (MethodInfo mi, params object[] methodArgs)
 Generator (ConstructorInfo ci, params object[] ctorArgs)
 Generator (Type type, params object[] ctorArgs)
 Generator ()
System.Xml.Schema.XmlSchema GetSchema ()
void ReadXml (System.Xml.XmlReader reader)
override string ToString ()
void WriteXml (System.Xml.XmlWriter writer)

Properties

bool AreArgsUnknown [get]
object[] Args [get, set]
MethodDescriptor Creator [get, set]
TypeDescriptor DeclaringType [get]
bool IsInputRequired [get]
MethodCall[] Modifiers [get, set]
SetterCall[] Setters [get, set]


Detailed Description

Base class of all visual components. This class simply represents a call to the constructor of a class. You may add a sequence of setter calls to modify the created instance. You may add a sequence of method calls to modify the created instance.

Constructor & Destructor Documentation

wx.NetMacros.Generator.Generator (  ) 

Default ctor. Is needed for serialization.

wx.NetMacros.Generator.Generator ( Type  type,
params object[]  ctorArgs 
)

Creates an instance of this class providing a type and an array of arguments for a constructor.

Parameters:
type This ís a factory that will create instances of this type. This must not be an abstract type.
ctorArgs Arguments to the ctor of type that shall be used. Instances of the classes wx.NetMacros.Generator and wx.NetMacros.MethodCall will not be passed as arguments to this generator on creating an instance. The runtime environment will rather execute these instances and use the result as argument.

wx.NetMacros.Generator.Generator ( ConstructorInfo  ci,
params object[]  ctorArgs 
)

This will create an instance using the provided constructor.

Parameters:
ci Descriptor of the method that creates the instance.
methodArgs Argument list that will be passed to the designated method. This can be null. In that case, the argument list will be a tuple of UserInputRequired instances.

wx.NetMacros.Generator.Generator ( MethodInfo  mi,
params object[]  methodArgs 
)

This will create an instance using the provided method. If the method descriptor designates a static method, the arguments will be passed to this method as provided to this ctor. If the method descriptor designated a non-static method, this method will be called at the first element of the argument list. The rest of the argument list will be passed as arguments to the called method.

Parameters:
mi Descriptor of the method that creates the instance.
methodArgs Argument list that will be passed to the designated method. This can be null. In that case, the argument list will be a tuple of UserInputRequired instances.


Member Function Documentation

void wx.NetMacros.Generator.AddModifier ( MethodCall  mc  ) 

Adds a method that will be called in Create immediately after creating the instance. This makes only sense if this method is a modifier. The added modifiers will be called in the order in which they have been added. Modifiers will be evaluated after the setters have been executed. The SetterCall.Self member will be ignored. Please note, that side effects on this property might happen while executing the generator.

Parameters:
mc 

void wx.NetMacros.Generator.AddSetter ( SetterCall  sc  ) 

Adds a new assignment that shall be executed immediately after the new instance has been created. The declaring type of the property of the setter shall be if the same class as the instance that has been created by this generator. Setters will run in the order in which they have been added before the modifiers. The SetterCall.Self member will be ignored. Please note, that side effects on this property might happen while executing the generator.

Parameters:
sc 

System.Xml.Schema.XmlSchema wx.NetMacros.Generator.GetSchema (  ) 

void wx.NetMacros.Generator.ReadXml ( System.Xml.XmlReader  reader  ) 

override string wx.NetMacros.Generator.ToString (  ) 

void wx.NetMacros.Generator.WriteXml ( System.Xml.XmlWriter  writer  ) 


Property Documentation

bool wx.NetMacros.Generator.AreArgsUnknown [get]

True if the arguments to the encapsulated CTor or method are unknown.

object [] wx.NetMacros.Generator.Args [get, set]

This will try to create an instance of CreateInstanceOfType using these arguments.

MethodDescriptor wx.NetMacros.Generator.Creator [get, set]

The method or CTor that will be run to create the inital instance.

See also:
Create

TypeDescriptor wx.NetMacros.Generator.DeclaringType [get]

This instance will create an instance of this type.

See also:
Create

bool wx.NetMacros.Generator.IsInputRequired [get]

True if this contains an argument list but at least on of the arguments is an instance of UserInputRequired.

See also:
UserInputRequired

MethodCall [] wx.NetMacros.Generator.Modifiers [get, set]

Modifiers that will be called in Create immediately after the instance has been created.

SetterCall [] wx.NetMacros.Generator.Setters [get, set]


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads