Class JavaParserEnumConstantDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserEnumConstantDeclaration
-
- All Implemented Interfaces:
AssociableToAST
,ResolvedDeclaration
,ResolvedEnumConstantDeclaration
,ResolvedValueDeclaration
public class JavaParserEnumConstantDeclaration extends Object implements ResolvedEnumConstantDeclaration
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description JavaParserEnumConstantDeclaration(EnumConstantDeclaration wrappedNode, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
ResolvedType
getType()
EnumConstantDeclaration
getWrappedNode()
Returns the JavaParser node associated with this JavaParserEnumConstantDeclaration.Optional<Node>
toAst()
-
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
-
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
-
-
-
-
Constructor Detail
-
JavaParserEnumConstantDeclaration
public JavaParserEnumConstantDeclaration(EnumConstantDeclaration wrappedNode, TypeSolver typeSolver)
-
-
Method Detail
-
getType
public ResolvedType getType()
- Specified by:
getType
in interfaceResolvedValueDeclaration
-
getName
public String getName()
- Specified by:
getName
in interfaceResolvedDeclaration
- Specified by:
getName
in interfaceResolvedEnumConstantDeclaration
-
getWrappedNode
public EnumConstantDeclaration getWrappedNode()
Returns the JavaParser node associated with this JavaParserEnumConstantDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
toAst
public Optional<Node> toAst()
- Specified by:
toAst
in interfaceAssociableToAST
-
-