OhObject 概要
静的 内部プロテクト フィールド
 NEWLINE | OS に依存しない改行コードを表す文字列です。 New line. |
パブリック コンストラクタ
OhObject
|
オーバーロード。 OhObject クラスの新しいインスタンスを初期化します。 |
パブリック プロパティ
AbsName | 所有者の情報を取得します。
|
ClassName | クラス名を取得します。 Gets the class name.
- get: a String value. クラス名
|
ObjectName | オブジェクト名を取得します。 Gets the object name.
- get: a String value. オブジェクト名
|
ObjectNumber | オブジェクト番号を取得します。 Gets the object number.
- get: a int value. オブジェクト番号
|
Owner | 所有者を取得・設定します。型はObject型になります。 Gets and sets the owner of the current object casted to type Object. |
TopOwner | 最高所有者を取得します。 Gets the top owner of the receiver.
- get: a Object value. 最高所有者名
|
パブリック メソッド
basicInfo | 当該クラスのについての情報を返します。 Returns the information string about this class. |
cPrint | オーバーロード。 オブジェクト情報(所有者の情報を含まない)を出力します。 |
cPrintString | Returns the String aHead + _className + " " + _objectName + " " + _objectNumer + NEWLINE
| Yahoo a("yahoo", 0); | a.cPrintString(aSw, "+"); returns +Yahoo yahoo 0
|
init | オブジェクト名、オブジェクト番号を初期化します。 Initialization.
具体的には、引数 aObjName, aObjNum を _objectName, _objectNumber に設定します。 また、_objectName が設定済みの時は、二重設定と判断し、エラーメッセージを表示します。 この場合、_objectName, _objectNumber を変更しません。 コンストラクタの定義、及びデフォルトコンストラクタで生成したオブジェクトの初期化に用います。
|
objCompare | オーバーロード。 クラス名、オブジェクト名、オブジェクト番号に関するオブジェクトの比較を行ないます。
|
objectInfo | クラス名、オブジェクト名、オブジェクト番号についての情報を 文字列として返します。 Returns a String which contains the information about of _className, _objectName, and _objectNumber. |
oPrint | オーバーロード。 オブジェクト情報(所有者の情報を含む)を出力します。
|
oPrintString | オブジェクト情報(所有者の情報を含む)を返します。 Returns a message string which contains the information about the OhObject object itself and its owner sequence. |
ToString | オブジェクトの所有関係を返します。 Returns a String representation of this object. 当該オブジェクトから出発し、_owner に格納されているオブジェ クトを辿り、_owner が null になるまでのオブジェクトの系列に ついて、各オブジェクトの _ className, _objectName, _objectNumber の情報を一行に書いた複数行の文字列を返します。 (参考) OhObject obj が toString() に対して返す複数行の 文字列の各行の行頭にタブを入れるには、
Pattern p = Pattern.compile("^", Pattern.MULTILINE); Matcher matcher = p.matcher(obj.toString()); String output = matcher.replaceAll("\t"); のようにします。output が目的の文字列です。 |
内部プロテクト フィールド
_className | クラス名を表す文字列です。 '_className' stores the class name. |
_objectName | オブジェクト名を表す文字列です。 '_objetcName' stores the object name. |
_objectNumber | オブジェクト番号を表すint値です。 '_objectNumber' stores the object number. |
_owner | 所有者を表すオブジェクトです。 The "owner" of the current object casted to type Object. |
参照
OhObject クラス | OhymosNet 名前空間