C# Class JinianNet.JNTemplate.Parser.VariableScope

变量域
Datei anzeigen Open project: jiniannet/jntemplate Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

清空数据

Clear ( System.Boolean all ) : void

清空数据

ContainsKey ( String key ) : System.Boolean

是否包含指定键

Push ( String key, Object value ) : void

添加数据

Remove ( String key ) : System.Boolean

移除指定对象

VariableScope ( ) : System

无参构造函数

VariableScope ( Object>.IDictionary dictionary ) : System

以字典来初始化对象

VariableScope ( VariableScope parent ) : System

以父VariableScope来初始化对象

VariableScope ( VariableScope parent, Object>.IDictionary dictionary ) : System

以父VariableScope与字典来初始化对象

this ( String name ) : Object

获取索引值

Private Methods

Method Description
SetValue ( String key, Object value ) : System.Boolean

为已有键设置新的值(本方法供set标签做特殊处理使用)

Method Details

Clear() public method

清空数据
public Clear ( ) : void
return void

Clear() public method

清空数据
public Clear ( System.Boolean all ) : void
all System.Boolean 是否清空父数据
return void

ContainsKey() public method

是否包含指定键
public ContainsKey ( String key ) : System.Boolean
key String
return System.Boolean

Push() public method

添加数据
public Push ( String key, Object value ) : void
key String
value Object
return void

Remove() public method

移除指定对象
public Remove ( String key ) : System.Boolean
key String
return System.Boolean

VariableScope() public method

无参构造函数
public VariableScope ( ) : System
return System

VariableScope() public method

以字典来初始化对象
public VariableScope ( Object>.IDictionary dictionary ) : System
dictionary Object>.IDictionary 初始化字典
return System

VariableScope() public method

以父VariableScope来初始化对象
public VariableScope ( VariableScope parent ) : System
parent VariableScope 父VariableScope
return System

VariableScope() public method

以父VariableScope与字典来初始化对象
public VariableScope ( VariableScope parent, Object>.IDictionary dictionary ) : System
parent VariableScope 父VariableScope
dictionary Object>.IDictionary 初始化字典
return System

this() public method

获取索引值
public this ( String name ) : Object
name String 索引名称
return Object