C# Class Mirror.ClassMirror

A ClassMirror object reflects upon the type of a single designscript variable The information here is populated during the code generation phase
Inheritance: StaticMirror
Show file Open project: DynamoDS/Dynamo

Private Properties

Property Type Description
ClassMirror System
ClassMirror System

Public Methods

Method Description
ClassMirror ( string className, ProtoCore core ) : System
GetClassAttributes ( ) : ClassAttributes
GetClassHierarchy ( ) : IEnumerable

Returns the base class hierarchy for the given class

GetConstructors ( ) : IEnumerable

Returns the list of constructors defined for the given class

GetFunctions ( ) : IEnumerable

Returns the list of functions of the class only

GetInstanceMembers ( ) : IEnumerable
GetMembers ( ) : IEnumerable

Returns the constructors and static methods and properties belonging to the type and its base types

GetOverloads ( string methodName ) : IEnumerable

Given the method name, return the list of all matching constructors and member functions of this type only

GetOverloadsOnInstance ( string methodName ) : IEnumerable

Given a method name, return the matching list of instance methods on this type and its base types

GetOverloadsOnType ( string methodName ) : IEnumerable

Given a method name, return the matching list of constructors or static methods on this type and its base types

GetProperties ( ) : IEnumerable

Returns the list of class properties of this class

Private Methods

Method Description
ClassMirror ( ProtoCore core, ProtoCore classNode, LibraryMirror libraryMirror = null ) : System
ClassMirror ( StackValue svData, ProtoCore core ) : System

Constructor to construct ClassMirror from runtime data i.e. StackValue

Method Details

ClassMirror() public method

public ClassMirror ( string className, ProtoCore core ) : System
className string
core ProtoCore
return System

GetClassAttributes() public method

public GetClassAttributes ( ) : ClassAttributes
return ClassAttributes

GetClassHierarchy() public method

Returns the base class hierarchy for the given class
public GetClassHierarchy ( ) : IEnumerable
return IEnumerable

GetConstructors() public method

Returns the list of constructors defined for the given class
public GetConstructors ( ) : IEnumerable
return IEnumerable

GetFunctions() public method

Returns the list of functions of the class only
public GetFunctions ( ) : IEnumerable
return IEnumerable

GetInstanceMembers() public method

public GetInstanceMembers ( ) : IEnumerable
return IEnumerable

GetMembers() public method

Returns the constructors and static methods and properties belonging to the type and its base types
public GetMembers ( ) : IEnumerable
return IEnumerable

GetOverloads() public method

Given the method name, return the list of all matching constructors and member functions of this type only
public GetOverloads ( string methodName ) : IEnumerable
methodName string
return IEnumerable

GetOverloadsOnInstance() public method

Given a method name, return the matching list of instance methods on this type and its base types
public GetOverloadsOnInstance ( string methodName ) : IEnumerable
methodName string
return IEnumerable

GetOverloadsOnType() public method

Given a method name, return the matching list of constructors or static methods on this type and its base types
public GetOverloadsOnType ( string methodName ) : IEnumerable
methodName string
return IEnumerable

GetProperties() public method

Returns the list of class properties of this class
public GetProperties ( ) : IEnumerable
return IEnumerable