Class YGuardLogParser


  • public class YGuardLogParser
    extends java.lang.Object
    The type Y guard log parser.
    • Constructor Summary

      Constructors 
      Constructor Description
      YGuardLogParser()
      Instantiates a new Y guard log parser.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.tree.DefaultMutableTreeNode findChild​(javax.swing.tree.TreeNode node, java.lang.String name, java.lang.Class ofType)
      Find child default mutable tree node.
      protected javax.swing.tree.DefaultMutableTreeNode findChild​(javax.swing.tree.TreeNode node, java.lang.String name, java.lang.Class ofType, boolean useMap)
      Find child default mutable tree node.
      protected com.yworks.yguard.YGuardLogParser.ClassStruct getClass​(java.lang.String fqn)
      Gets class.
      protected javax.swing.tree.DefaultMutableTreeNode getClassNode​(java.lang.String fqn)
      Gets class node.
      protected javax.swing.tree.DefaultMutableTreeNode getClassNode​(java.lang.String fqn, boolean useMap)
      Gets class node.
      protected com.yworks.yguard.YGuardLogParser.FieldStruct getField​(java.lang.String fqn, java.lang.String signature)
      Gets field.
      protected javax.swing.tree.DefaultMutableTreeNode getFieldNode​(java.lang.String cname, java.lang.String fqn)
      Gets field node.
      protected javax.swing.tree.DefaultMutableTreeNode getFieldNode​(java.lang.String cname, java.lang.String fqn, boolean useMap)
      Gets field node.
      protected com.yworks.yguard.YGuardLogParser.MethodStruct getMethod​(java.lang.String fqn, java.lang.String signature)
      Gets method.
      protected javax.swing.tree.DefaultMutableTreeNode getMethodNode​(java.lang.String cname, java.lang.String fqn)
      Gets method node.
      protected javax.swing.tree.DefaultMutableTreeNode getMethodNode​(java.lang.String cname, java.lang.String fqn, boolean useMap)
      Gets method node.
      protected com.yworks.yguard.YGuardLogParser.PackageStruct getPackage​(java.lang.String fqn)
      Gets package.
      protected javax.swing.tree.DefaultMutableTreeNode getPackageNode​(java.lang.String packageName)
      Gets package node.
      protected javax.swing.tree.DefaultMutableTreeNode getPackageNode​(java.lang.String packageName, boolean useMap)
      Gets package node.
      static void main​(java.lang.String[] args)
      The entry point of application.
      void parse​(java.net.URL url)
      Parse.
      void parse​(org.xml.sax.InputSource is)
      Parse.
      YGuardLogParser.MyStackTraceElement translate​(YGuardLogParser.MyStackTraceElement ste)
      Translate my stack trace element.
      java.lang.String translate​(java.lang.String fqn)
      Translate string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • YGuardLogParser

        public YGuardLogParser()
        Instantiates a new Y guard log parser.
    • Method Detail

      • findChild

        protected javax.swing.tree.DefaultMutableTreeNode findChild​(javax.swing.tree.TreeNode node,
                                                                    java.lang.String name,
                                                                    java.lang.Class ofType)
        Find child default mutable tree node.
        Parameters:
        node - the node
        name - the name
        ofType - the of type
        Returns:
        the default mutable tree node
      • findChild

        protected javax.swing.tree.DefaultMutableTreeNode findChild​(javax.swing.tree.TreeNode node,
                                                                    java.lang.String name,
                                                                    java.lang.Class ofType,
                                                                    boolean useMap)
        Find child default mutable tree node.
        Parameters:
        node - the node
        name - the name
        ofType - the of type
        useMap - the use map
        Returns:
        the default mutable tree node
      • getPackageNode

        protected javax.swing.tree.DefaultMutableTreeNode getPackageNode​(java.lang.String packageName)
        Gets package node.
        Parameters:
        packageName - the package name
        Returns:
        the package node
      • getPackageNode

        protected javax.swing.tree.DefaultMutableTreeNode getPackageNode​(java.lang.String packageName,
                                                                         boolean useMap)
        Gets package node.
        Parameters:
        packageName - the package name
        useMap - the use map
        Returns:
        the package node
      • getClass

        protected com.yworks.yguard.YGuardLogParser.ClassStruct getClass​(java.lang.String fqn)
        Gets class.
        Parameters:
        fqn - the fqn
        Returns:
        the class
      • getPackage

        protected com.yworks.yguard.YGuardLogParser.PackageStruct getPackage​(java.lang.String fqn)
        Gets package.
        Parameters:
        fqn - the fqn
        Returns:
        the package
      • getMethod

        protected com.yworks.yguard.YGuardLogParser.MethodStruct getMethod​(java.lang.String fqn,
                                                                           java.lang.String signature)
        Gets method.
        Parameters:
        fqn - the fqn
        signature - the signature
        Returns:
        the method
      • getField

        protected com.yworks.yguard.YGuardLogParser.FieldStruct getField​(java.lang.String fqn,
                                                                         java.lang.String signature)
        Gets field.
        Parameters:
        fqn - the fqn
        signature - the signature
        Returns:
        the field
      • getClassNode

        protected javax.swing.tree.DefaultMutableTreeNode getClassNode​(java.lang.String fqn)
        Gets class node.
        Parameters:
        fqn - the fqn
        Returns:
        the class node
      • getClassNode

        protected javax.swing.tree.DefaultMutableTreeNode getClassNode​(java.lang.String fqn,
                                                                       boolean useMap)
        Gets class node.
        Parameters:
        fqn - the fqn
        useMap - the use map
        Returns:
        the class node
      • getMethodNode

        protected javax.swing.tree.DefaultMutableTreeNode getMethodNode​(java.lang.String cname,
                                                                        java.lang.String fqn)
        Gets method node.
        Parameters:
        cname - the cname
        fqn - the fqn
        Returns:
        the method node
      • getMethodNode

        protected javax.swing.tree.DefaultMutableTreeNode getMethodNode​(java.lang.String cname,
                                                                        java.lang.String fqn,
                                                                        boolean useMap)
        Gets method node.
        Parameters:
        cname - the cname
        fqn - the fqn
        useMap - the use map
        Returns:
        the method node
      • getFieldNode

        protected javax.swing.tree.DefaultMutableTreeNode getFieldNode​(java.lang.String cname,
                                                                       java.lang.String fqn)
        Gets field node.
        Parameters:
        cname - the cname
        fqn - the fqn
        Returns:
        the field node
      • getFieldNode

        protected javax.swing.tree.DefaultMutableTreeNode getFieldNode​(java.lang.String cname,
                                                                       java.lang.String fqn,
                                                                       boolean useMap)
        Gets field node.
        Parameters:
        cname - the cname
        fqn - the fqn
        useMap - the use map
        Returns:
        the field node
      • parse

        public void parse​(java.net.URL url)
                   throws javax.xml.parsers.ParserConfigurationException,
                          org.xml.sax.SAXException,
                          java.io.IOException
        Parse.
        Parameters:
        url - the url
        Throws:
        javax.xml.parsers.ParserConfigurationException - the parser configuration exception
        org.xml.sax.SAXException - the sax exception
        java.io.IOException - the io exception
      • parse

        public void parse​(org.xml.sax.InputSource is)
                   throws javax.xml.parsers.ParserConfigurationException,
                          org.xml.sax.SAXException,
                          java.io.IOException
        Parse.
        Parameters:
        is - the is
        Throws:
        javax.xml.parsers.ParserConfigurationException - the parser configuration exception
        org.xml.sax.SAXException - the sax exception
        java.io.IOException - the io exception
      • translate

        public java.lang.String translate​(java.lang.String fqn)
        Translate string.
        Parameters:
        fqn - the fqn
        Returns:
        the string
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        The entry point of application.
        Parameters:
        args - the input arguments
        Throws:
        java.lang.Exception - the exception