com.android.tools.lint.checks
Class ControlFlowGraph.Node

java.lang.Object
  extended by com.android.tools.lint.checks.ControlFlowGraph.Node
Enclosing class:
ControlFlowGraph

public static class ControlFlowGraph.Node
extends java.lang.Object

A ControlFlowGraph.Node is a node in the control flow graph for a method, pointing to the instruction and its possible successors


Field Summary
 java.util.List<ControlFlowGraph.Node> exceptions
          Any abnormal successors (e.g.
 org.objectweb.asm.tree.AbstractInsnNode instruction
          The instruction
 java.util.List<ControlFlowGraph.Node> successors
          Any normal successors (e.g.
 int visit
          A tag for use during depth-first-search iteration of the graph etc
 
Constructor Summary
ControlFlowGraph.Node(org.objectweb.asm.tree.AbstractInsnNode instruction)
          Constructs a new control graph node
 
Method Summary
 java.lang.String toString(boolean includeAdjacent)
          Represents this instruction as a string, for debugging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instruction

public final org.objectweb.asm.tree.AbstractInsnNode instruction
The instruction


successors

public final java.util.List<ControlFlowGraph.Node> successors
Any normal successors (e.g. following instruction, or goto or conditional flow)


exceptions

public final java.util.List<ControlFlowGraph.Node> exceptions
Any abnormal successors (e.g. the handler to go to following an exception)


visit

public int visit
A tag for use during depth-first-search iteration of the graph etc

Constructor Detail

ControlFlowGraph.Node

public ControlFlowGraph.Node(@NonNull
                             org.objectweb.asm.tree.AbstractInsnNode instruction)
Constructs a new control graph node

Parameters:
instruction - the instruction to associate with this node
Method Detail

toString

@NonNull
public java.lang.String toString(boolean includeAdjacent)
Represents this instruction as a string, for debugging purposes

Parameters:
includeAdjacent - whether it should include a display of adjacent nodes as well
Returns:
a string representation