Свойство | Тип | Описание | |
---|---|---|---|
EnterFunction | void | ||
EnterLoop | void | ||
ExitFunction | void | ||
ExitLoop | void | ||
GetListAccessor | IListAccessor | ||
GetOrSetValue | object | ||
GetStoreForSet | IEnumerable |
||
GetValueInternal | object | ||
PopVariableScope | void | ||
PushVariableScope | void | ||
StepLoop | bool |
Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
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. | |
Результат | object |
public Evaluate ( |
||
scriptNode | The script node. | |
aliasReturnedFunction | bool | if set to |
Результат | object |
public static GetDefaultBuiltinObject ( ) : ScriptObject | ||
Результат | ScriptObject |
public GetMemberAccessor ( object target ) : IMemberAccessor | ||
target | object | The target object to get a member accessor. |
Результат | IMemberAccessor |
public GetValue ( ScriptExpression target ) : object | ||
target | ScriptExpression | The expression |
Результат | object |
public PushGlobal ( IScriptObject scriptObject ) : void | ||
scriptObject | IScriptObject | The script object. |
Результат | void |
public PushSourceFile ( string sourceFile ) : void | ||
sourceFile | string | The source file. |
Результат | void |
public SetReadOnly ( ScriptVariable variable, bool isReadOnly = true ) : void | ||
variable | ScriptVariable | The variable. |
isReadOnly | bool | if set to |
Результат | void |
public SetValue ( ScriptExpression target, object value ) : void | ||
target | ScriptExpression | The target expression. |
value | object | The value. |
Результат | void |
public SetValue ( ScriptVariable variable, object value, bool asReadOnly ) : void | ||
variable | ScriptVariable | The variable. |
value | object | The value. |
asReadOnly | bool | if set to |
Результат | void |
public TemplateContext ( ScriptObject builtin ) : System | ||
builtin | ScriptObject | The builtin object used to expose builtin functions, default is |
Результат | System |
public Write ( |
||
span | The span of the object to render. | |
textAsObject | object | The text as object. |
Результат | void |