org.oklab.compiler.nametable.content
クラス ContentFieldRef

java.lang.Object
  上位を拡張 org.oklab.compiler.nametable.content.Content
      上位を拡張 org.oklab.compiler.nametable.content.ContentFieldRef
直系の既知のサブクラス:
ContentMethodRef

 class ContentFieldRef
extends Content

フィールドの参照情報を保持する.

導入されたバージョン:
1.0
バージョン:
1.01
作成者:
Satoshi Okita satoshiokita@gmail.com
関連項目:
ContentMethodRef

フィールドの概要
private  int classIndex
          フィールドのクラス名を格納したインデックス.
protected  int CONTENT_ID
          バイトコードでの識別子.
private  int nameAndTypeIndex
          フィールドの名前と型を格納したインデックス.
 
クラス org.oklab.compiler.nametable.content.Content から継承されたフィールド
contentPoolIndex
 
コンストラクタの概要
ContentFieldRef(int classIndex, int nameAndTypeIndex)
          フィールドの参照情報を生成する.
 
メソッドの概要
(package private)  void emitCode(java.io.DataOutputStream f)
          クラスファイルへの出力.
 
クラス org.oklab.compiler.nametable.content.Content から継承されたメソッド
getContentPoolIndex, setContentPoolIndex, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

CONTENT_ID

protected int CONTENT_ID
バイトコードでの識別子.


classIndex

private int classIndex
フィールドのクラス名を格納したインデックス.


nameAndTypeIndex

private int nameAndTypeIndex
フィールドの名前と型を格納したインデックス.

コンストラクタの詳細

ContentFieldRef

ContentFieldRef(int classIndex,
                int nameAndTypeIndex)
フィールドの参照情報を生成する.

パラメータ:
classIndex - フィールドのクラス名を格納したインデックス.
nameAndTypeIndex - フィールドの名前と型を格納したインデックス.
メソッドの詳細

emitCode

void emitCode(java.io.DataOutputStream f)
        throws java.io.IOException
クラスファイルへの出力. このメソッドをメソッドの参照情報を保持するContentMethodRefサブクラスでも 利用している.

定義:
クラス Content 内の emitCode
パラメータ:
f - 出力クラスファイル.
例外:
java.io.IOException - 出力に失敗した時に発生する.
関連項目:
ContentMethodRef