![]() |
BadScript 2
|
Implements a Meta Data container for an expression. More...
Public Member Functions | |||||
BadMetaData (string description, string returnDescription, string returnType, Dictionary< string, BadParameterMetaData > parameterDescriptions) | |||||
Creates a new Meta Data Object. | |||||
override BadClassPrototype | GetPrototype () | ||||
override bool | HasProperty (string propName, BadScope? caller=null) | ||||
Returns true if the object contains a given property or there exists an extension for the current Instance.
| |||||
override BadObjectReference | GetProperty (string propName, BadScope? caller=null) | ||||
Returns a Reference to the Property with the given Name.
| |||||
override string | ToSafeString (List< BadObject > done) | ||||
![]() | |||||
BadClassPrototype | GetPrototype () | ||||
Returns the Prototype of this Object. | |||||
string | ToSafeString (List< BadObject > done) | ||||
Returns a String Representation of this Object. This function is recursion proof and supports circular references. | |||||
override string | ToString () | ||||
Returns a String Representation of this Object. | |||||
Public Attributes | |
readonly string | Description |
The Description of the Expression. | |
readonly Dictionary< string, BadParameterMetaData > | ParameterDescriptions |
The Description of the Function Parameters. | |
readonly string | ReturnDescription |
The Description of the Return Value. | |
readonly string | ReturnType |
The Return Type of the Expression. | |
Static Public Attributes | |
static readonly BadMetaData | Empty |
An empty Meta Data object. | |
![]() | |
static readonly BadObject | Null = new BadNullObject() |
The Null Value for the BadScript Language. | |
static readonly BadObject | True = new BadBoolean(true) |
The True Value for the BadScript Language. | |
static readonly BadObject | False = new BadBoolean(false) |
The False Value for the BadScript Language. | |
Additional Inherited Members | |
![]() | |
static bool | CanWrap (object? o) |
Returns true if the given object cam be wrapped. | |
static BadObject | Wrap< T > (T obj, bool allowNative=true) |
Wraps the given object into a BadObject Instance. | |
static implicit | operator BadObject (bool b) |
Implicit Converstion from Boolean to BadObject. | |
static implicit | operator BadObject (BadNullable< bool > b) |
Converts the given object to a BadObject Instance. | |
static implicit | operator BadObject (DateTimeOffset d) |
static implicit | operator BadObject (TimeSpan t) |
static implicit | operator BadObject (decimal d) |
Implicit Converstion from Number to BadObject. | |
static implicit | operator BadObject (BadNullable< decimal > b) |
Converts the given object to a BadObject Instance. | |
static implicit | operator BadObject (string s) |
Implicit Converstion from String to BadObject. | |
static implicit | operator BadObject (BadNullable< string > b) |
Converts the given object to a BadObject Instance. | |
Implements a Meta Data container for an expression.
Definition at line 15 of file BadMetaData.cs.
BadScript2.Parser.BadMetaData.BadMetaData | ( | string | description, |
string | returnDescription, | ||
string | returnType, | ||
Dictionary< string, BadParameterMetaData > | parameterDescriptions | ||
) |
Creates a new Meta Data Object.
description | The Description of the Expression |
returnDescription | The Description of the Return Value |
returnType | The Return Type of the Expression |
parameterDescriptions | The Description of the Function Parameters |
Definition at line 50 of file BadMetaData.cs.
|
virtual |
Returns a Reference to the Property with the given Name.
propName | The Property Name |
caller | The caller Scope |
Reimplemented from BadScript2.Runtime.Objects.BadObject.
Definition at line 75 of file BadMetaData.cs.
override BadClassPrototype BadScript2.Parser.BadMetaData.GetPrototype | ( | ) |
Definition at line 62 of file BadMetaData.cs.
|
virtual |
Returns true if the object contains a given property or there exists an extension for the current Instance.
propName | The Property Name |
caller | The caller Scope |
Reimplemented from BadScript2.Runtime.Objects.BadObject.
Definition at line 68 of file BadMetaData.cs.
override string BadScript2.Parser.BadMetaData.ToSafeString | ( | List< BadObject > | done | ) |
Definition at line 113 of file BadMetaData.cs.
readonly string BadScript2.Parser.BadMetaData.Description |
The Description of the Expression.
Definition at line 26 of file BadMetaData.cs.
|
static |
An empty Meta Data object.
Definition at line 20 of file BadMetaData.cs.
readonly Dictionary<string, BadParameterMetaData> BadScript2.Parser.BadMetaData.ParameterDescriptions |
The Description of the Function Parameters.
Definition at line 31 of file BadMetaData.cs.
readonly string BadScript2.Parser.BadMetaData.ReturnDescription |
The Description of the Return Value.
Definition at line 36 of file BadMetaData.cs.
readonly string BadScript2.Parser.BadMetaData.ReturnType |
The Return Type of the Expression.
Definition at line 41 of file BadMetaData.cs.