public final class JavaParserUtil extends Object
限定符和类型 | 方法和说明 |
---|---|
static void |
dumpToFile(String path,
String content) |
static com.github.javaparser.ast.body.ClassOrInterfaceDeclaration |
getClass(com.github.javaparser.ast.Node node)
获取指定节点的类或接口声明.
|
static com.github.javaparser.ast.body.TypeDeclaration |
getTypeDeclaration(com.github.javaparser.ast.Node node) |
static boolean |
implementsInterface(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classOrInterfaceDeclaration,
Class theInterface) |
static boolean |
implementsInterface(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classOrInterfaceDeclaration,
String interfaceSimpleName) |
static boolean |
isMethodPublic(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classOrInterfaceDeclaration,
com.github.javaparser.ast.body.MethodDeclaration methodDeclaration) |
static String |
javadocFirstLineOf(com.github.javaparser.ast.body.BodyDeclaration fieldDeclaration) |
static String |
javadocFirstLineOf(com.github.javaparser.ast.body.MethodDeclaration methodDeclaration) |
static String |
javadocFirstLineOf(com.github.javaparser.ast.body.TypeDeclaration classOrInterfaceDeclaration) |
static String |
packageName(com.github.javaparser.ast.body.TypeDeclaration classOrInterfaceDeclaration) |
static String |
packageOfKeyRelationRightClass(com.github.javaparser.ast.expr.AnnotationExpr keyRelation,
com.github.javaparser.ast.expr.ClassExpr rightClassExpr) |
static String |
resolvedTypeAsString(String resolvedTypeDescribed) |
public static String packageName(com.github.javaparser.ast.body.TypeDeclaration classOrInterfaceDeclaration)
public static void dumpToFile(String path, String content) throws IOException
IOException
public static com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getClass(com.github.javaparser.ast.Node node)
node
- AST Nodepublic static com.github.javaparser.ast.body.TypeDeclaration getTypeDeclaration(com.github.javaparser.ast.Node node)
public static String packageOfKeyRelationRightClass(com.github.javaparser.ast.expr.AnnotationExpr keyRelation, com.github.javaparser.ast.expr.ClassExpr rightClassExpr)
public static boolean implementsInterface(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classOrInterfaceDeclaration, Class theInterface)
public static boolean implementsInterface(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classOrInterfaceDeclaration, String interfaceSimpleName)
public static boolean isMethodPublic(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classOrInterfaceDeclaration, com.github.javaparser.ast.body.MethodDeclaration methodDeclaration)
public static String javadocFirstLineOf(com.github.javaparser.ast.body.BodyDeclaration fieldDeclaration)
public static String javadocFirstLineOf(com.github.javaparser.ast.body.MethodDeclaration methodDeclaration)
public static String javadocFirstLineOf(com.github.javaparser.ast.body.TypeDeclaration classOrInterfaceDeclaration)
Copyright © 2020–2023. All rights reserved.