Package com.yworks.yguard
Class YGuardLogParser
- java.lang.Object
-
- com.yworks.yguard.YGuardLogParser
-
public class YGuardLogParser extends java.lang.ObjectThe type Y guard log parser.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYGuardLogParser.CharConverterThe type Char converter.static classYGuardLogParser.IconsThe type Icons.static classYGuardLogParser.MyStackTraceElementThe type My stack trace element.
-
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.DefaultMutableTreeNodefindChild(javax.swing.tree.TreeNode node, java.lang.String name, java.lang.Class ofType)Find child default mutable tree node.protected javax.swing.tree.DefaultMutableTreeNodefindChild(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.ClassStructgetClass(java.lang.String fqn)Gets class.protected javax.swing.tree.DefaultMutableTreeNodegetClassNode(java.lang.String fqn)Gets class node.protected javax.swing.tree.DefaultMutableTreeNodegetClassNode(java.lang.String fqn, boolean useMap)Gets class node.protected com.yworks.yguard.YGuardLogParser.FieldStructgetField(java.lang.String fqn, java.lang.String signature)Gets field.protected javax.swing.tree.DefaultMutableTreeNodegetFieldNode(java.lang.String cname, java.lang.String fqn)Gets field node.protected javax.swing.tree.DefaultMutableTreeNodegetFieldNode(java.lang.String cname, java.lang.String fqn, boolean useMap)Gets field node.protected com.yworks.yguard.YGuardLogParser.MethodStructgetMethod(java.lang.String fqn, java.lang.String signature)Gets method.protected javax.swing.tree.DefaultMutableTreeNodegetMethodNode(java.lang.String cname, java.lang.String fqn)Gets method node.protected javax.swing.tree.DefaultMutableTreeNodegetMethodNode(java.lang.String cname, java.lang.String fqn, boolean useMap)Gets method node.protected com.yworks.yguard.YGuardLogParser.PackageStructgetPackage(java.lang.String fqn)Gets package.protected javax.swing.tree.DefaultMutableTreeNodegetPackageNode(java.lang.String packageName)Gets package node.protected javax.swing.tree.DefaultMutableTreeNodegetPackageNode(java.lang.String packageName, boolean useMap)Gets package node.static voidmain(java.lang.String[] args)The entry point of application.voidparse(java.net.URL url)Parse.voidparse(org.xml.sax.InputSource is)Parse.YGuardLogParser.MyStackTraceElementtranslate(YGuardLogParser.MyStackTraceElement ste)Translate my stack trace element.java.lang.Stringtranslate(java.lang.String fqn)Translate string.
-
-
-
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 nodename- the nameofType- 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 nodename- the nameofType- the of typeuseMap- 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 nameuseMap- 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 fqnsignature- 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 fqnsignature- 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 fqnuseMap- 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 cnamefqn- 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 cnamefqn- the fqnuseMap- 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 cnamefqn- 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 cnamefqn- the fqnuseMap- 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.IOExceptionParse.- Parameters:
url- the url- Throws:
javax.xml.parsers.ParserConfigurationException- the parser configuration exceptionorg.xml.sax.SAXException- the sax exceptionjava.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.IOExceptionParse.- Parameters:
is- the is- Throws:
javax.xml.parsers.ParserConfigurationException- the parser configuration exceptionorg.xml.sax.SAXException- the sax exceptionjava.io.IOException- the io exception
-
translate
public java.lang.String translate(java.lang.String fqn)
Translate string.- Parameters:
fqn- the fqn- Returns:
- the string
-
translate
public YGuardLogParser.MyStackTraceElement translate(YGuardLogParser.MyStackTraceElement ste)
Translate my stack trace element.- Parameters:
ste- the ste- Returns:
- the my stack trace element
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionThe entry point of application.- Parameters:
args- the input arguments- Throws:
java.lang.Exception- the exception
-
-