Class JavassistEnumConstantDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javassistmodel.JavassistEnumConstantDeclaration
-
- All Implemented Interfaces:
AssociableToAST
,ResolvedDeclaration
,ResolvedEnumConstantDeclaration
,ResolvedValueDeclaration
public class JavassistEnumConstantDeclaration extends java.lang.Object implements ResolvedEnumConstantDeclaration
-
-
Field Summary
Fields Modifier and Type Field Description private javassist.CtField
ctField
private ResolvedType
type
private TypeSolver
typeSolver
-
Constructor Summary
Constructors Constructor Description JavassistEnumConstantDeclaration(javassist.CtField ctField, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Should return the name or return null if the name is not available.ResolvedType
getType()
Type of the declaration.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
ctField
private javassist.CtField ctField
-
typeSolver
private TypeSolver typeSolver
-
type
private ResolvedType type
-
-
Constructor Detail
-
JavassistEnumConstantDeclaration
public JavassistEnumConstantDeclaration(javassist.CtField ctField, TypeSolver typeSolver)
-
-
Method Detail
-
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
- Specified by:
getName
in interfaceResolvedEnumConstantDeclaration
-
getType
public ResolvedType getType()
Description copied from interface:ResolvedValueDeclaration
Type of the declaration.- Specified by:
getType
in interfaceResolvedValueDeclaration
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-