woolpack.html
クラス AbstractCountProperty<C extends NodeContext,E extends java.lang.Exception>
java.lang.Object
woolpack.html.AbstractCountProperty<C,E>
- 型パラメータ:
C - E -
- すべての実装されたインタフェース:
- Fn<C,java.lang.Void,E>
- 直系の既知のサブクラス:
- BranchPropertyCounter
public abstract class AbstractCountProperty<C extends NodeContext,E extends java.lang.Exception>
- extends java.lang.Object
- implements Fn<C,java.lang.Void,E>
各属性値の出現回数をカウントして
interpret(NodeContext, PropertyCounter)
に処理を委譲するFnです。
適用しているデザインパターン:Template Method。
- 作成者:
- nakamura
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCountProperty
public AbstractCountProperty(EL el,
java.lang.Iterable<java.lang.String> attrNames)
- パラメータ:
el - プロパティの出現回数を保持するNodeContext上の位置。attrNames - 属性名の一覧。本クラスはこの引数の状態を変化させません。
exec
public java.lang.Void exec(C c)
throws E extends java.lang.Exception
- インタフェース
Fn の記述:
- 関数を実行します。
- 定義:
- インタフェース
Fn<C extends NodeContext,java.lang.Void,E extends java.lang.Exception> 内の exec
- パラメータ:
c - コンテキスト役。
- 戻り値:
- 返却値。
- 例外:
E - 例外。
E extends java.lang.Exception
interpret
public abstract void interpret(C context,
PropertyCounter counter)
throws E extends java.lang.Exception
Fn.exec(Object)から呼び出されます(called)。
実装クラスではPropertyCounterの状態により処理を行う必要があります。
- パラメータ:
context - コンテキスト。counter - プロパティの出現回数をカウントするカウンタ。
- 例外:
E extends java.lang.Exception
getAttrNames
public java.lang.Iterable<java.lang.String> getAttrNames()
setAttrNames
public void setAttrNames(java.lang.Iterable<java.lang.String> attrNames)
getEl
public EL getEl()
setEl
public void setEl(EL el)
Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.