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.CtMethod
annotationMember
private static java.util.Map<java.lang.Class<? extends javassist.bytecode.annotation.MemberValue>,java.util.function.Function<javassist.bytecode.annotation.MemberValue,? extends Expression>>
memberValueAsExressionConverter
private TypeSolver
typeSolver
-
Constructor Summary
Constructors Constructor Description JavassistAnnotationMemberDeclaration(javassist.CtMethod 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.-
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:
getDefaultValue
in interfaceResolvedAnnotationMemberDeclaration
-
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
-
-