Top Fields Constructors Methods
org.jruby.ir.dataflow.analyses

public Class DefinedVariablesProblem

extends DataFlowProblem<DefinedVariablesProblem, DefinedVariableNode>
Class Inheritance
Imports
org.jruby.ir.dataflow.DataFlowProblem, org.jruby.ir.interpreter.FullInterpreterContext, org.jruby.ir.operands.Variable, org.jruby.ir.representations.BasicBlock, java.util.*

Field Summary

Modifier and TypeField and Description
private final HashMap<Variable, Integer>
public static final String
private final HashMap<Integer, Variable>
private final HashSet<Variable>
Inherited from org.jruby.ir.dataflow.DataFlowProblem:
directionficflowGraphNodes

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public DefinedVariableNode
public boolean
public Set<Variable>
public Set<Variable>
public Integer
public String
public Variable
getVariable(int id)

Inherited from org.jruby.ir.dataflow.DataFlowProblem:
addDataFlowVarcompute_MOP_SolutiongenerateWorkListgetDataFlowVarsForOutputgetDFVarsCountgetEntryNodegetExitNodegetFICgetFlowDirectiongetFlowGraphNodeisEmptysetuptoString

Field Detail

dfVarMapback to summary
private final HashMap<Variable, Integer> dfVarMap
NAMEback to summary
public static final String NAME
varDfVarMapback to summary
private final HashMap<Integer, Variable> varDfVarMap
varsback to summary
private final HashSet<Variable> vars

Constructor Detail

DefinedVariablesProblemback to summary
public DefinedVariablesProblem(FullInterpreterContext fic)

Method Detail

addDFVarback to summary
public void addDFVar(Variable v)
buildFlowGraphNodeback to summary
public DefinedVariableNode buildFlowGraphNode(BasicBlock bb)

Implements abstract org.jruby.ir.dataflow.DataFlowProblem.buildFlowGraphNode.

Annotations
@Override
dfVarExistsback to summary
public boolean dfVarExists(Variable v)
findUndefinedVarsback to summary
public Set<Variable> findUndefinedVars()
getAllVarsback to summary
public Set<Variable> getAllVars()
getDFVarback to summary
public Integer getDFVar(Variable v)
getNameback to summary
public String getName()

Implements abstract org.jruby.ir.dataflow.DataFlowProblem.getName.

Annotations
@Override
getVariableback to summary
public Variable getVariable(int id)