/cfa

Class File Analyzer (CFA)

Primary LanguageJavaGNU General Public License v2.0GPL-2.0

Class File Analyzer (CFA).
CI result CodeQL

Analyze class files from ConstantPool.

How to Build

Requirements

  • JDK 16 or later
  • Maven 3.6.3 or later

Build

$ export JAVA_HOME=/path/to/jdk
$ mvn package

How to use

$ cfa [options] [files (JAR or class file)]

Options

  • -h
    • Help message
  • -t class1,class2,...
    • Target class.
    • CFA will pick up classes from file list.
  • -c class1,class2,...
    • Class filter.
    • CFA will pick up classes which include them in ConstantPool.
  • -m method1,method2,...
    • Method filter.
    • CFA will pick up classes which include them in ConstantPool.
  • -s
    • Short output.
    • If this option is added, CFA will output class name and file path only.

License

GNU General Public License v2