public class JavaParserUtil extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
JavaParserUtil.Declaration |
| 构造器和说明 |
|---|
JavaParserUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<com.github.javaparser.ast.body.FieldDeclaration> |
getAllFieldDeclaration(String sourceRoot,
com.github.javaparser.ast.CompilationUnit compilationUnit,
com.github.javaparser.ast.body.TypeDeclaration<?> typeDeclaration) |
static String |
getCommentContent(String rawComment) |
static String[] |
getCommentTexts(String rawComment) |
static String |
getFieldCommentContent(com.github.javaparser.ast.body.FieldDeclaration fieldDeclaration) |
static String |
getFieldCommentContent(String fieldName,
List<com.github.javaparser.ast.body.FieldDeclaration> fieldDeclarationList) |
static com.github.javaparser.ast.body.FieldDeclaration |
getFieldDeclaration(String fieldName,
List<com.github.javaparser.ast.body.FieldDeclaration> fieldDeclarationList) |
static JavaParserUtil.Declaration |
getFieldDeclarationList(String sourceRoot,
String javaFilePath) |
static String |
getSuperClassPath(String sourceRoot,
String packageName,
String superClassName,
List<com.github.javaparser.ast.ImportDeclaration> importDeclarationList) |
public static String getFieldCommentContent(com.github.javaparser.ast.body.FieldDeclaration fieldDeclaration)
public static String getFieldCommentContent(String fieldName, List<com.github.javaparser.ast.body.FieldDeclaration> fieldDeclarationList)
public static com.github.javaparser.ast.body.FieldDeclaration getFieldDeclaration(String fieldName, List<com.github.javaparser.ast.body.FieldDeclaration> fieldDeclarationList)
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)
public static String getSuperClassPath(String sourceRoot, String packageName, String superClassName, List<com.github.javaparser.ast.ImportDeclaration> importDeclarationList)
public static JavaParserUtil.Declaration getFieldDeclarationList(String sourceRoot, String javaFilePath) throws FileNotFoundException
Copyright © 2025. All rights reserved.