Class ReflectionAnnotationMemberDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.reflectionmodel.ReflectionAnnotationMemberDeclaration
-
- All Implemented Interfaces:
AssociableToAST
,ResolvedAnnotationMemberDeclaration
,ResolvedDeclaration
,ResolvedValueDeclaration
public class ReflectionAnnotationMemberDeclaration extends java.lang.Object implements ResolvedAnnotationMemberDeclaration
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Method
annotationMember
private TypeSolver
typeSolver
private static java.util.Map<java.lang.Class<?>,java.util.function.Function<java.lang.Object,? extends Expression>>
valueAsExpressionConverters
-
Constructor Summary
Constructors Constructor Description ReflectionAnnotationMemberDeclaration(java.lang.reflect.Method annotationMember, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
getDefaultValue()
java.lang.String
getName()
Should return the name or return null if the name is not available.ResolvedType
getType()
Type of the declaration.private Expression
transformDefaultValue(java.lang.Object value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAst
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asType, asTypePattern, hasName, isEnumConstant, isField, isMethod, isParameter, isType, isTypePattern, isVariable
-
-
-
-
Field Detail
-
valueAsExpressionConverters
private static java.util.Map<java.lang.Class<?>,java.util.function.Function<java.lang.Object,? extends Expression>> valueAsExpressionConverters
-
annotationMember
private java.lang.reflect.Method annotationMember
-
typeSolver
private TypeSolver typeSolver
-
-
Constructor Detail
-
ReflectionAnnotationMemberDeclaration
public ReflectionAnnotationMemberDeclaration(java.lang.reflect.Method annotationMember, TypeSolver typeSolver)
-
-
Method Detail
-
getDefaultValue
public Expression getDefaultValue()
- Specified by:
getDefaultValue
in interfaceResolvedAnnotationMemberDeclaration
-
transformDefaultValue
private Expression transformDefaultValue(java.lang.Object value)
-
getType
public ResolvedType getType()
Description copied from interface:ResolvedValueDeclaration
Type of the declaration.- Specified by:
getType
in interfaceResolvedValueDeclaration
-
getName
public java.lang.String getName()
Description copied from interface:ResolvedDeclaration
Should return the name or return null if the name is not available.- Specified by:
getName
in interfaceResolvedDeclaration
-
-