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