Class JavassistAnnotationMemberDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.javassistmodel.JavassistAnnotationMemberDeclaration
- All Implemented Interfaces:
AssociableToAST
,ResolvedAnnotationMemberDeclaration
,ResolvedDeclaration
,ResolvedValueDeclaration
public class JavassistAnnotationMemberDeclaration
extends Object
implements ResolvedAnnotationMemberDeclaration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javassist.CtMethod
private static Map
<Class<? extends javassist.bytecode.annotation.MemberValue>, Function<javassist.bytecode.annotation.MemberValue, ? extends Expression>> private TypeSolver
-
Constructor Summary
ConstructorsConstructorDescriptionJavassistAnnotationMemberDeclaration
(javassist.CtMethod annotationMember, TypeSolver typeSolver) -
Method Summary
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 Details
-
memberValueAsExressionConverter
private static Map<Class<? extends javassist.bytecode.annotation.MemberValue>,Function<javassist.bytecode.annotation.MemberValue, memberValueAsExressionConverter? extends Expression>> -
annotationMember
private javassist.CtMethod annotationMember -
typeSolver
-
-
Constructor Details
-
JavassistAnnotationMemberDeclaration
public JavassistAnnotationMemberDeclaration(javassist.CtMethod annotationMember, TypeSolver typeSolver)
-
-
Method Details
-
getDefaultValue
- Specified by:
getDefaultValue
in interfaceResolvedAnnotationMemberDeclaration
-
getType
Description copied from interface:ResolvedValueDeclaration
Type of the declaration.- Specified by:
getType
in interfaceResolvedValueDeclaration
-
getName
Description copied from interface:ResolvedDeclaration
Should return the name or return null if the name is not available.- Specified by:
getName
in interfaceResolvedDeclaration
-