Class ReflectionEnumConstantDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.reflectionmodel.ReflectionEnumConstantDeclaration
-
- All Implemented Interfaces:
AssociableToAST,ResolvedDeclaration,ResolvedEnumConstantDeclaration,ResolvedValueDeclaration
public class ReflectionEnumConstantDeclaration extends java.lang.Object implements ResolvedEnumConstantDeclaration
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.FieldenumConstantprivate TypeSolvertypeSolver
-
Constructor Summary
Constructors Constructor Description ReflectionEnumConstantDeclaration(java.lang.reflect.Field enumConstant, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
asField, asMethod, asParameter, asType, asTypePattern, hasName, isField, isMethod, isParameter, isType, isTypePattern, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration
asEnumConstant, isEnumConstant
-
-
-
-
Field Detail
-
enumConstant
private java.lang.reflect.Field enumConstant
-
typeSolver
private TypeSolver typeSolver
-
-
Constructor Detail
-
ReflectionEnumConstantDeclaration
public ReflectionEnumConstantDeclaration(java.lang.reflect.Field enumConstant, TypeSolver typeSolver)
-
-
Method Detail
-
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- Specified by:
getNamein interfaceResolvedEnumConstantDeclaration
-
getType
public ResolvedType getType()
Description copied from interface:ResolvedValueDeclarationType of the declaration.- Specified by:
getTypein interfaceResolvedValueDeclaration
-
-