public class TreeModelEncoder<T> extends Object
Modifier and Type | Class and Description |
---|---|
class |
TreeModelEncoder.Frame
A representation of an AVM "frame," the local variables, scope stack slots,
and value stack slots used in a particular Block of the method's flowgraph.
|
Constructor and Description |
---|
TreeModelEncoder(MethodBodyInfo mbi,
TreeModelVisitor<T> visitor,
IDiagnosticsVisitor diagnosticsVisitor)
Construct a new TreeModelEncoder.
|
Modifier and Type | Method and Description |
---|---|
IFlowgraph |
getCfg()
Get the method's flowgraph.
|
IBasicBlock |
getCurrentBlock()
Get the block currently being analyzed.
|
TreeModelEncoder.Frame |
getFrame(IBasicBlock b)
Get the Frame that corresponds to a Block.
|
int |
getInstructionIndex()
Get the index of the instruction currently being analyzed.
|
MethodBodyInfo |
getMethodBodyInfo()
Get the MethodBodyInfo of the method being analyzed.
|
public TreeModelEncoder(MethodBodyInfo mbi, TreeModelVisitor<T> visitor, IDiagnosticsVisitor diagnosticsVisitor)
mbi
- - the method body of interest.visitor
- - the TreeModelVisitor that's interested.diagnosticsVisitor
- - a handler for any diagnostics generated.public MethodBodyInfo getMethodBodyInfo()
public IFlowgraph getCfg()
public IBasicBlock getCurrentBlock()
public int getInstructionIndex()
public TreeModelEncoder.Frame getFrame(IBasicBlock b)
b
- - the Block of interest.Copyright © 2016 The Apache Software Foundation. All rights reserved.