Class JavassistAnnotationMemberDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javassistmodel.JavassistAnnotationMemberDeclaration
-
- All Implemented Interfaces:
AssociableToAST,ResolvedAnnotationMemberDeclaration,ResolvedDeclaration,ResolvedValueDeclaration
public class JavassistAnnotationMemberDeclaration extends java.lang.Object implements ResolvedAnnotationMemberDeclaration
-
-
Field Summary
Fields Modifier and Type Field Description private javassist.CtMethodannotationMemberprivate static java.util.Map<java.lang.Class<? extends javassist.bytecode.annotation.MemberValue>,java.util.function.Function<javassist.bytecode.annotation.MemberValue,? extends Expression>>memberValueAsExressionConverterprivate TypeSolvertypeSolver
-
Constructor Summary
Constructors Constructor Description JavassistAnnotationMemberDeclaration(javassist.CtMethod annotationMember, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetDefaultValue()java.lang.StringgetName()Should return the name or return null if the name is not available.ResolvedTypegetType()Type of the declaration.-
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
-
memberValueAsExressionConverter
private static java.util.Map<java.lang.Class<? extends javassist.bytecode.annotation.MemberValue>,java.util.function.Function<javassist.bytecode.annotation.MemberValue,? extends Expression>> memberValueAsExressionConverter
-
annotationMember
private javassist.CtMethod annotationMember
-
typeSolver
private TypeSolver typeSolver
-
-
Constructor Detail
-
JavassistAnnotationMemberDeclaration
public JavassistAnnotationMemberDeclaration(javassist.CtMethod annotationMember, TypeSolver typeSolver)
-
-
Method Detail
-
getDefaultValue
public Expression getDefaultValue()
- Specified by:
getDefaultValuein interfaceResolvedAnnotationMemberDeclaration
-
getType
public ResolvedType getType()
Description copied from interface:ResolvedValueDeclarationType of the declaration.- Specified by:
getTypein interfaceResolvedValueDeclaration
-
getName
public java.lang.String getName()
Description copied from interface:ResolvedDeclarationShould return the name or return null if the name is not available.- Specified by:
getNamein interfaceResolvedDeclaration
-
-