Design Pattern verification Using Static Code Analysis
- This tool uses Antlr tool to analyze Design Patterns
- Java8 grammar file is used to create the Lexer, parser, token and etc. with the help of Antlr tool
- Using these grammar files, AST (Abstract Syntact Tree) is created.
- Extracted information from the java source code files are stored in xml/souceCodeArtefactFile.xml
- This tool can verify DesingPatterns such as
- Abstract factory pattern
- Composite Pattern
- Decorator Pattern
- Factory Pattern
- Prototype Pattern Also identifies
- Inheritance Relationship
- Interface Relationship
- To run this tool: (i) Give the path of your java source file to verify the design pattern "javaFilePath" attribute in the "DesignPatternAnalysis" class (ii) Main class to run the tool select - PatternAnalysis --> DesignPatternAnalysis