Свойство | Type | Description | |
---|---|---|---|
EnterFunction | void | ||
EnterLoop | void | ||
ExitFunction | void | ||
ExitLoop | void | ||
GetListAccessor | IListAccessor | ||
GetOrSetValue | object | ||
GetStoreForSet | IEnumerable |
||
GetValueInternal | object | ||
PopVariableScope | void | ||
PushVariableScope | void | ||
StepLoop | bool |
Méthode | Description | |
---|---|---|
Evaluate ( |
Evaluates the specified script node. Result is set to null when calling directly this method. |
|
Evaluate ( |
Evaluates the specified script node. Result is set to null when calling directly this method. |
|
GetDefaultBuiltinObject ( ) : ScriptObject |
Gets a ScriptObject with all default builtins registered.
|
|
GetMemberAccessor ( object target ) : IMemberAccessor |
Gets the member accessor for the specified object.
|
|
GetValue ( ScriptExpression target ) : object |
Gets the value from the specified expression using the current ScriptObject bound to the model context.
|
|
PopGlobal ( ) : IScriptObject |
Pops the previous model context.
|
|
PopOutput ( ) : string |
Pops a previous output.
|
|
PopSourceFile ( ) : string |
Pops the source file being executed.
|
|
PushGlobal ( IScriptObject scriptObject ) : void |
Pushes a new model context accessible to the template.
|
|
PushOutput ( ) : void |
Pushes a new output used for rendering the current template while keeping the previous output.
|
|
PushSourceFile ( string sourceFile ) : void |
Pushes the source file path being executed. This should have enough information so that template loading/include can work correctly.
|
|
SetReadOnly ( ScriptVariable variable, bool isReadOnly = true ) : void |
Sets the variable to read only. This will not throw an exception if a previous variable was readonly. |
|
SetValue ( ScriptExpression target, object value ) : void |
Sets the target expression with the specified value.
|
|
SetValue ( ScriptVariable variable, object value, bool asReadOnly ) : void |
Sets the variable with the specified value.
|
|
TemplateContext ( ) : System |
Initializes a new instance of the TemplateContext class.
|
|
TemplateContext ( ScriptObject builtin ) : System |
Initializes a new instance of the TemplateContext class.
|
|
Write ( |
Writes an object value to the current Output.
|
|
Write ( string text ) : void |
Writes the text to the current Output
|
Méthode | Description | |
---|---|---|
EnterFunction ( |
||
EnterLoop ( |
||
ExitFunction ( ) : void | ||
ExitLoop ( ) : void | ||
GetListAccessor ( object target ) : IListAccessor | ||
GetOrSetValue ( ScriptExpression targetExpression, object valueToSet, bool setter, int level ) : object | ||
GetStoreForSet ( ScriptVariable variable ) : IEnumerable |
||
GetValueInternal ( ScriptVariable variable ) : object | ||
PopVariableScope ( ScriptVariableScope scope ) : void | ||
PushVariableScope ( ScriptVariableScope scope ) : void | ||
StepLoop ( ) : bool |
public Evaluate ( |
||
scriptNode | The script node. | |
Résultat | object |
public Evaluate ( |
||
scriptNode | The script node. | |
aliasReturnedFunction | bool | if set to |
Résultat | object |
public static GetDefaultBuiltinObject ( ) : ScriptObject | ||
Résultat | ScriptObject |
public GetMemberAccessor ( object target ) : IMemberAccessor | ||
target | object | The target object to get a member accessor. |
Résultat | IMemberAccessor |
public GetValue ( ScriptExpression target ) : object | ||
target | ScriptExpression | The expression |
Résultat | object |
public PushGlobal ( IScriptObject scriptObject ) : void | ||
scriptObject | IScriptObject | The script object. |
Résultat | void |
public PushSourceFile ( string sourceFile ) : void | ||
sourceFile | string | The source file. |
Résultat | void |
public SetReadOnly ( ScriptVariable variable, bool isReadOnly = true ) : void | ||
variable | ScriptVariable | The variable. |
isReadOnly | bool | if set to |
Résultat | void |
public SetValue ( ScriptExpression target, object value ) : void | ||
target | ScriptExpression | The target expression. |
value | object | The value. |
Résultat | void |
public SetValue ( ScriptVariable variable, object value, bool asReadOnly ) : void | ||
variable | ScriptVariable | The variable. |
value | object | The value. |
asReadOnly | bool | if set to |
Résultat | void |
public TemplateContext ( ScriptObject builtin ) : System | ||
builtin | ScriptObject | The builtin object used to expose builtin functions, default is |
Résultat | System |
public Write ( |
||
span | The span of the object to render. | |
textAsObject | object | The text as object. |
Résultat | void |