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

Method makeNode

src/bsh/util/ClassBrowser.java:552–570  ·  view source on GitHub ↗
( Map map, String nodeName )

Source from the content-addressed store, hash-verified

550
551
552 MutableTreeNode makeNode( Map map, String nodeName )
553 {
554 DefaultMutableTreeNode root =
555 new DefaultMutableTreeNode( nodeName );
556 Iterator it=map.keySet().iterator();
557 while(it.hasNext() ) {
558 String name = (String)it.next();
559 Map val = (Map)map.get(name);
560 if ( val.size() == 0 ) {
561 DefaultMutableTreeNode leaf =
562 new DefaultMutableTreeNode( name );
563 root.add( leaf );
564 } else {
565 MutableTreeNode node = makeNode( val, name );
566 root.add( node );
567 }
568 }
569 return root;
570 }
571
572 /**
573 Map out the location of the nodes by package name.

Callers 1

makeTreeModelMethod · 0.95

Calls 7

iteratorMethod · 0.80
hasNextMethod · 0.80
getMethod · 0.65
keySetMethod · 0.45
nextMethod · 0.45
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected