^1614837371742
@
sextends
xworker.example.thing.actions.ExtendAction
Sdescription
#$@text#$@
<h3>动作的继承</h3>

<p>&nbsp;&nbsp;&nbsp; 事物的动作可以在事物本身的actions子节点下定义，也可以从其描述者和被继承的事物上继承。</p>

<h3>动作继承的顺序</h3>

<p>&nbsp;&nbsp;&nbsp;&nbsp; 一个动作首先从其自身找，其次从描述者上找，最后从继承上找，先找到的使用。</p>

<h3>动作继承的测试</h3>

<p>&nbsp;&nbsp;&nbsp;&nbsp; 请在当前事物编辑器的工具栏中找到相应的动作执行查看结果。</p>

<ul>
	<li>描述者定义的动作：actionByDesc和actionOverwrite</li>
	<li>被继承事物定义的动作：actionByExtend和actionOverwrite</li>
	<li>当前事物定义的动作：actionByMySelf和actionOverwrite</li>
</ul>
#$@text#$@
sname
InheritInstance
slabel
InheritInstance
sdescriptors
xworker.example.thing.actions.InheritDescriptor
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  actions
    @/@actions/@actionByMySelf
    sname
    actionByMySelf
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    scode
    println("action from myself");
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@GroovyAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    actionByMySelf
    @/@actions/@actionOverwrite
    sname
    actionOverwrite
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    scode
    println("overwrite action from myself");
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@GroovyAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    actionOverwrite
