public class FrameModelEncoder extends Object implements IFlowGraphVisitor
Constructor and Description |
---|
FrameModelEncoder(MethodBodyInfo mbi,
FrameModelVisitor<?> visitor,
IDiagnosticsVisitor diagnosticsVisitor)
Construct a new FrameModelEncoder.
|
Modifier and Type | Method and Description |
---|---|
int |
getInstructionIndex()
Get the index of the current instruction in the current block.
|
boolean |
visitBlock(IBasicBlock b)
Visit a Block.
|
void |
visitEnd(IBasicBlock b)
Finish visiting a Block.
|
void |
visitInstruction(Instruction i)
Visit an Instruction within the most recently-visited Block.
|
public FrameModelEncoder(MethodBodyInfo mbi, FrameModelVisitor<?> visitor, IDiagnosticsVisitor diagnosticsVisitor)
mbi
- - the MethodBodyInfo to analyze.visitor
- - the FrameModelVisitor analyzing the method.diagnosticsVisitor
- - a sink for diagnostics.public boolean visitBlock(IBasicBlock b)
visitBlock
in interface IFlowGraphVisitor
b
- - the IBasicBlock to visit.public int getInstructionIndex()
public void visitInstruction(Instruction i)
visitInstruction
in interface IFlowGraphVisitor
i
- - the Instruction.public void visitEnd(IBasicBlock b)
IFlowGraphVisitor
visitEnd
in interface IFlowGraphVisitor
b
- - the Block. It must be the same block last visited by
visitBlock() where that call returned true.Copyright © 2016 The Apache Software Foundation. All rights reserved.