public class GraphNode extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
id |
List<BytecodeInstruction> |
instructions |
| Constructor and Description |
|---|
GraphNode(int id)
Creates a node of a graph
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(GraphNode child)
Adds a child to node
|
void |
addChildren(Collection<GraphNode> children)
Adds children to node
|
void |
addChildren(GraphNode[] children)
Adds children to node
|
void |
addExceptionChild(GraphNode child) |
boolean |
equals(Object obj) |
GraphNode[] |
getChildren()
Gets the children of the node
|
GraphNode[] |
getExceptionChildren() |
GraphNode[] |
getParents()
Gets the parents of the node
|
int |
hashCode() |
boolean |
isGotoNode() |
void |
removeChild(GraphNode child)
Removes a child of the node
|
void |
removeChildren(Collection<GraphNode> children)
Removes children of the node
|
void |
removeChildren(GraphNode[] children)
Removes children of the node
|
void |
removeExceptionChildren(Collection<GraphNode> children) |
String |
toString()
Object overwrite methods
|
public final int id
public final List<BytecodeInstruction> instructions
public GraphNode(int id)
id - the identifier of the nodepublic boolean isGotoNode()
public GraphNode[] getChildren()
public GraphNode[] getParents()
public GraphNode[] getExceptionChildren()
public void addChild(GraphNode child)
child - the child to be addedpublic void addChildren(Collection<GraphNode> children)
children - the children to be addedpublic void addChildren(GraphNode[] children)
children - the children to be addedpublic void removeChild(GraphNode child)
child - the child to be removedpublic void removeChildren(Collection<GraphNode> children)
children - the children to be removedpublic void removeChildren(GraphNode[] children)
children - the children to be removedpublic void addExceptionChild(GraphNode child)
public void removeExceptionChildren(Collection<GraphNode> children)
Copyright © 2014. All rights reserved.