phodal / chapi

CHAPI (Common Hierarchical Abstract Parser and Information Converter) streamlines code analysis by converting diverse language source code into a unified abstract model, simplifying cross-language development. Chapi 是一个通用层次抽象解析器与信息转换器,它可以将不同编程语言的源代码转换为统一的层次抽象模型。
https://chapi.phodal.com/
Mozilla Public License 2.0
270 stars 44 forks source link

feat: <java> add enum support #19

Closed wuwen5 closed 2 years ago

wuwen5 commented 2 years ago

fixed #18

没接触过这块领域,尝试了一下。

因为enum枚举类型在编译的时候实际上就是 继承至java.lang.Enumclass 所以节点类型我暂时复用的 DataStructType.CLASS 不确定是否合理。

phodal commented 2 years ago

嗯,不过,从语义的角度,建议加一个 DataStructType.ENUM ?