Search in sources :

Example 6 with GraphNode

use of com.android.tools.idea.experimental.codeanalysis.datastructs.graph.node.GraphNode in project android by JetBrains.

the class SwitchBranchingNodeImpl method getOut.

@Override
public GraphNode[] getOut() {
    GraphNode[] retArray = new GraphNode[mSwitchTable.size()];
    int i = 0;
    for (Value v : mSwitchTable.keySet()) {
        GraphNode target = mSwitchTable.get(v);
        retArray[i] = target;
        i++;
    }
    return retArray;
}
Also used : Value(com.android.tools.idea.experimental.codeanalysis.datastructs.value.Value) GraphNode(com.android.tools.idea.experimental.codeanalysis.datastructs.graph.node.GraphNode)

Aggregations

GraphNode (com.android.tools.idea.experimental.codeanalysis.datastructs.graph.node.GraphNode)6 PsiCFGMethod (com.android.tools.idea.experimental.codeanalysis.datastructs.PsiCFGMethod)3 ConditionCheckNode (com.android.tools.idea.experimental.codeanalysis.datastructs.graph.node.ConditionCheckNode)1 Value (com.android.tools.idea.experimental.codeanalysis.datastructs.value.Value)1