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

フィールドの概要
protected  int contentPoolIndex
           
 
コンストラクタの概要
Content()
           
 
メソッドの概要
(package private) abstract  void emitCode(java.io.DataOutputStream f)
          クラスファイルへの出力.
 int getContentPoolIndex()
          コンテントプールマネージャに格納された場所のインデックスを返す.
 int setContentPoolIndex(int contentPoolIndex)
          コンテントプールマネージャに格納する場所を指定して保持する.
 java.lang.String toString()
           
 
クラス 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