public virtual Parser build() { Parser parser = new Parser(); // decide what to show AAction.displaySemi = false; AAction.displayStack = false; // this is default so redundant // action used for inheritance, aggregation, composition and using PushStackRelationship push = new PushStackRelationship(repo); // capture Inheritance info DetectInheritance detectNS = new DetectInheritance(); detectNS.add(push); parser.add(detectNS); // capture class info DetectClass detectCl = new DetectClass(); detectCl.add(push); parser.add(detectCl); // capture Aggr info DetectAggregation detectAG = new DetectAggregation(); detectAG.add(push); parser.add(detectAG); // capture Composition info DetectComposition detectCP = new DetectComposition(); detectCP.add(push); parser.add(detectCP); // capture Using info DetectUsing detectUs = new DetectUsing(); detectUs.add(push); parser.add(detectUs); // parser configured return(parser); }
public virtual Parser build() { Parser parser = new Parser(); // decide what to show AAction.displaySemi = false; AAction.displayStack = false; // this is default so redundant // action used for inheritance, aggregation, composition and using PushStackRelationship push = new PushStackRelationship(repo); // capture Inheritance info DetectInheritance detectNS = new DetectInheritance(); detectNS.add(push); parser.add(detectNS); // capture class info DetectClass detectCl = new DetectClass(); detectCl.add(push); parser.add(detectCl); // capture Aggr info DetectAggregation detectAG = new DetectAggregation(); detectAG.add(push); parser.add(detectAG); // capture Composition info DetectComposition detectCP = new DetectComposition(); detectCP.add(push); parser.add(detectCP); // capture Using info DetectUsing detectUs = new DetectUsing(); detectUs.add(push); parser.add(detectUs); // parser configured return parser; }