Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pressing 'm' shows method call links
- Loading branch information
1 parent
99f6dcc
commit 57df736
Showing
4 changed files
with
130 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** Copyright 2012, Adam L. Davis, all rights reserved. */ | ||
package com.adamldavis.z; | ||
|
||
/** | ||
* Represents a link between two nodes such as a method-call. | ||
* | ||
* @author Adam L. Davis | ||
* | ||
*/ | ||
public class ZNodeLink { | ||
|
||
public enum LinkType { | ||
METHOD_CALL, EXTENDS, HAS_A, REQUIRES | ||
} | ||
|
||
private final ZNode node1; | ||
|
||
private final ZNode node2; | ||
|
||
private final LinkType linkType; | ||
|
||
public ZNodeLink(ZNode node1, ZNode node2, LinkType linkType) { | ||
super(); | ||
this.node1 = node1; | ||
this.node2 = node2; | ||
this.linkType = linkType; | ||
} | ||
|
||
public ZNode getNode1() { | ||
return node1; | ||
} | ||
|
||
public ZNode getNode2() { | ||
return node2; | ||
} | ||
|
||
public LinkType getLinkType() { | ||
return linkType; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters