Exemplo n.º 1
0
 public Node(MTree.Node node) {
   super(node);
   this.node = node;
   this.nodeText = NodeUtils.getTextFormattedForNode(node);
   this.nodeType = node.getType();
   metaNodeType = MetaNodeType.MATLAB;
 }
Exemplo n.º 2
0
 private String nodeDocumentation() {
   if (!(getType() == MTree.NodeType.FUNCTION
       || getType() == MTree.NodeType.CLASSDEF
       || getMetaNodeType() == MetaNodeType.META_CLASS
       || getMetaNodeType() == MetaNodeType.META_METHOD)) {
     return "";
   }
   List<MTree.Node> nodeList = NodeUtils.getDocumentationNodesForNode(node);
   String s = "";
   for (MTree.Node node : nodeList) {
     s += NodeUtils.getTextForNode(node).trim() + "\n";
   }
   if (s.length() > 0) {
     s = s.substring(0, s.length() - 1);
   }
   return s;
 }