|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.IrRoot | +--coins.HirRoot
HirRoot class is used to access HIR information and information prepared by other classes such as Sym, Flow, etc. This gives a trigger for accessing intermediate representation information such as the root of HIR tree, root of symbol table, and so on. HirRoot inherits ioRoot, symRoot, etc. from IrRoot. All HIR objects contain a reference to the HirRoot object from which intermediate representation information and methods can be quickly accessed. The HirRoot object contains a reference to IoRoot and SymRoot. Thus, every HIR objects can access information and methods of SymRoot, Sym and IoRoot. Coding rules in HirRoot Methods begin with lower case letter. Constants (final static int, etc.) are spelled in upper case letters. Indentation is 2 characters. Formal parameters begin with p. Local variables begin with l. Methods and variables are named so that meaning is easily guessed. Short names less than 3 characters are not used except for very local purpose. Protected or private fields starts with character f. Public fields of xxxRoot class might not start with character f.
フィールドの概要 | |
HIR |
hir
hir: HIR instance used to invoke HIR methods in such way as hirRoot.hir.assignStmt(variableNode, expressionNode). |
HirModify |
hirModify
hirModify: Used to modify HIR trees. |
HirRoot |
hirRoot
Record the HirRoot instance so that it can be refered from others. |
SubpDefinition |
hirSubpDefinition
hirSubpDefinition: Root of HIR tree representing current subprogram definition. |
MachineParam |
machineParam
Reference to MachineParam copied from ioRoot |
SourceLanguage |
sourceLanguage
Reference to SourceLanguage copied from SymRoot. |
Sym |
sym
sym is an instance of Sym class used to access Sym methods such as creation of Sym instance, etc. |
クラス coins.IrRoot から継承したフィールド |
fHirRoot, fInitiateIrCount, ioRoot, ir, irRoot, programRoot, symRoot |
コンストラクタの概要 | |
HirRoot(SymRoot pSymRoot)
Constructor of the HirRoot class. |
メソッドの概要 | |
void |
attachFlowRoot(FlowRoot pFlowRoot)
attachFlowRoot: Attach FLowRoot information when it become available. |
java.util.Iterator |
emptyIterator()
|
FlowRoot |
getFlowRoot()
getFlowRoot: Get FlowRoot to access Flow information from HIR. |
SubpDefinition |
getSubpDefinition()
getSubpDefinition: Get the subprogram definiton under current processing. |
void |
linkSubpDefinition(SubpDefinition pSubpDefinition)
linkSubpDefinition: Record the subprogram definition under current processing. |
クラス coins.IrRoot から継承したメソッド |
getHirRoot |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public final HirRoot hirRoot
public final HIR hir
public final Sym sym
public final HirModify hirModify
public SubpDefinition hirSubpDefinition
public final SourceLanguage sourceLanguage
public final MachineParam machineParam
コンストラクタの詳細 |
public HirRoot(SymRoot pSymRoot)
メソッドの詳細 |
public FlowRoot getFlowRoot()
public void attachFlowRoot(FlowRoot pFlowRoot)
public void linkSubpDefinition(SubpDefinition pSubpDefinition)
public SubpDefinition getSubpDefinition()
public java.util.Iterator emptyIterator()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |