MCPcopy Index your code
hub / github.com/beanshell/beanshell / addNodeMap

Method addNodeMap

src/bsh/util/ClassBrowser.java:590–603  ·  view source on GitHub ↗

map a single node up to the root

( TreeNode node )

Source from the content-addressed store, hash-verified

588 map a single node up to the root
589 */
590 void addNodeMap( TreeNode node ) {
591
592 StringBuilder sb = new StringBuilder();
593 TreeNode tn = node;
594 while( tn != root ) {
595 sb.insert(0, tn.toString() );
596 if ( tn.getParent() != root )
597 sb.insert(0, "." );
598 tn = tn.getParent();
599 }
600 String pack = sb.toString();
601
602 nodeForPackage.put( pack, node );
603 }
604
605 void setSelectedPackage( String pack ) {
606 DefaultMutableTreeNode node =

Callers 1

mapNodesMethod · 0.95

Calls 3

putMethod · 0.65
toStringMethod · 0.45
getParentMethod · 0.45

Tested by

no test coverage detected