public class DeclarationUtils
extends java.lang.Object
Constructor and Description |
---|
DeclarationUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
getDeclaringClass(com.github.javaparser.ast.body.FieldDeclaration m)
FIELDS
|
static java.lang.Class<?> |
getDeclaringClass(com.github.javaparser.ast.body.MethodDeclaration m) |
static java.lang.Class<?> |
getDecoratedClass(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classNode)
CLASSES
|
static java.lang.reflect.Type[] |
getExceptionTypes(com.github.javaparser.ast.body.MethodDeclaration md) |
static java.lang.Class<?> |
getFieldType(com.github.javaparser.ast.body.FieldDeclaration m) |
static TypeVariable<?>[] |
getGenericMethodTypeParameters(com.github.javaparser.ast.body.MethodDeclaration m) |
static java.lang.reflect.Type |
getGenericReturnType(com.github.javaparser.ast.body.MethodDeclaration m) |
static java.lang.invoke.MethodType |
getMethodType(com.github.javaparser.ast.body.MethodDeclaration md)
Utility method to get the method type.
|
static java.lang.String[] |
getParameterNames(com.github.javaparser.ast.body.MethodDeclaration md)
Utility method to get parameter names.
|
static java.lang.String |
getSourceCode(com.github.javaparser.ast.body.MethodDeclaration md)
Utility method to get a method body.
|
public static java.lang.invoke.MethodType getMethodType(com.github.javaparser.ast.body.MethodDeclaration md) throws StructuralIntercessionException
md
- A JavaParser method declarationjava.lang.ClassNotFoundException
StructuralIntercessionException
public static java.lang.String[] getParameterNames(com.github.javaparser.ast.body.MethodDeclaration md)
md
- A JavaParser method declarationpublic static java.lang.String getSourceCode(com.github.javaparser.ast.body.MethodDeclaration md)
md
- A JavaParser method declarationpublic static java.lang.reflect.Type getGenericReturnType(com.github.javaparser.ast.body.MethodDeclaration m)
public static TypeVariable<?>[] getGenericMethodTypeParameters(com.github.javaparser.ast.body.MethodDeclaration m)
public static java.lang.Class<?> getDeclaringClass(com.github.javaparser.ast.body.MethodDeclaration m) throws StructuralIntercessionException
StructuralIntercessionException
public static java.lang.reflect.Type[] getExceptionTypes(com.github.javaparser.ast.body.MethodDeclaration md) throws StructuralIntercessionException
StructuralIntercessionException
public static java.lang.Class<?> getDeclaringClass(com.github.javaparser.ast.body.FieldDeclaration m) throws StructuralIntercessionException
StructuralIntercessionException
public static java.lang.Class<?> getFieldType(com.github.javaparser.ast.body.FieldDeclaration m) throws StructuralIntercessionException
StructuralIntercessionException
public static java.lang.Class<?> getDecoratedClass(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classNode) throws StructuralIntercessionException
StructuralIntercessionException