org.oklab.compiler.nametable.content
クラス Content
java.lang.Object
org.oklab.compiler.nametable.content.Content
- 直系の既知のサブクラス:
- ContentClass, ContentFieldRef, ContentInteger, ContentNameAndType, ContentUTF8
abstract class Content
- extends java.lang.Object
クラスファイルのコンテントプール領域に格納するコンテントの基盤クラス.
入力ソースコードからクラスファイルを生成するまでの間、各コンテントはこのクラスを
継承したオブジェクトとしてContentPoolManager内に保持される.
- 導入されたバージョン:
- 1.0
- バージョン:
- 1.0
- 作成者:
- Satoshi Okita satoshiokita@gmail.com
- 関連項目:
ContentPoolManager,
ContentInteger,
ContentClass,
Content
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
contentPoolIndex
protected int contentPoolIndex
Content
Content()
getContentPoolIndex
public int getContentPoolIndex()
- コンテントプールマネージャに格納された場所のインデックスを返す.
- 戻り値:
- インデックス.
setContentPoolIndex
public int setContentPoolIndex(int contentPoolIndex)
- コンテントプールマネージャに格納する場所を指定して保持する.
インデックスは、コンテントプールマネージャの処理で戻り値として使うので値を返している.
- 戻り値:
- インデックス.
emitCode
abstract void emitCode(java.io.DataOutputStream f)
throws java.io.IOException
- クラスファイルへの出力.
- パラメータ:
f - 出力クラスファイル.
- 例外:
java.io.IOException - 出力に失敗した時に発生する.
toString
public java.lang.String toString()
- オーバーライド:
- クラス
java.lang.Object 内の toString