类 JavaParserUtil

java.lang.Object
cn.vonce.sql.uitls.JavaParserUtil

public class JavaParserUtil extends Object
Java解析工具
作者:
Jovi
  • 构造器详细资料

    • JavaParserUtil

      public JavaParserUtil()
  • 方法详细资料

    • getCommentContent

      public static String getCommentContent(String rawComment)
    • getCommentTexts

      public static String[] getCommentTexts(String rawComment)
    • getFieldCommentContent

      public static String getFieldCommentContent(com.github.javaparser.ast.body.FieldDeclaration fieldDeclaration)
    • getFieldCommentContent

      public static String getFieldCommentContent(String fieldName, List<com.github.javaparser.ast.body.FieldDeclaration> fieldDeclarationList)
    • getFieldDeclaration

      public static com.github.javaparser.ast.body.FieldDeclaration getFieldDeclaration(String fieldName, List<com.github.javaparser.ast.body.FieldDeclaration> fieldDeclarationList)
    • getAllFieldDeclaration

      public static List<com.github.javaparser.ast.body.FieldDeclaration> getAllFieldDeclaration(String sourceRoot, com.github.javaparser.ast.CompilationUnit compilationUnit, com.github.javaparser.ast.body.TypeDeclaration<?> typeDeclaration)
    • getSuperClassPath

      public static String getSuperClassPath(String sourceRoot, String packageName, String superClassName, List<com.github.javaparser.ast.ImportDeclaration> importDeclarationList)
    • getFieldDeclarationList

      public static JavaParserUtil.Declaration getFieldDeclarationList(String sourceRoot, String javaFilePath) throws FileNotFoundException
      抛出:
      FileNotFoundException