public class JavaParserEnumDeclaration extends AbstractTypeDeclaration implements EnumDeclaration
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaParserEnumDeclaration.ValuesMethod |
| Constructor and Description |
|---|
JavaParserEnumDeclaration(com.github.javaparser.ast.body.EnumDeclaration wrappedNode,
TypeSolver typeSolver) |
getAllMethods, isFunctionalInterfaceclone, finalize, getClass, notify, notifyAll, wait, wait, waitasEnum, isEnumasReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterfaceasClass, asInterface, asType, asTypeParameter, containerType, getId, internalTypesasField, asMethod, asParameter, hasName, isMethodpublic JavaParserEnumDeclaration(com.github.javaparser.ast.body.EnumDeclaration wrappedNode,
TypeSolver typeSolver)
public Set<MethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface ReferenceTypeDeclarationpublic Context getContext()
public String getName()
getName in interface Declarationpublic boolean isField()
isField in interface Declarationpublic boolean isParameter()
isParameter in interface Declarationpublic boolean isType()
isType in interface DeclarationisType in interface TypeDeclarationpublic boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation in interface ReferenceTypeDeclarationpublic boolean canBeAssignedTo(ReferenceTypeDeclaration other)
canBeAssignedTo in interface ReferenceTypeDeclarationpublic boolean isClass()
isClass in interface TypeDeclarationpublic boolean isInterface()
isInterface in interface TypeDeclarationpublic String getQualifiedName()
getQualifiedName in interface TypeDeclarationpublic boolean isAssignableBy(ReferenceTypeDeclaration other)
isAssignableBy in interface ReferenceTypeDeclarationpublic boolean isAssignableBy(Type type)
isAssignableBy in interface ReferenceTypeDeclarationpublic boolean isTypeParameter()
isTypeParameter in interface TypeDeclaration@Deprecated public Optional<MethodUsage> solveMethodAsUsage(String name, List<Type> parameterTypes, TypeSolver typeSolver, Context invokationContext, List<Type> typeParameterValues)
public List<FieldDeclaration> getAllFields()
getAllFields in interface ReferenceTypeDeclarationpublic List<ReferenceType> getAncestors()
getAncestors in interface ReferenceTypeDeclarationpublic List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface TypeParametrizablepublic com.github.javaparser.ast.body.EnumDeclaration getWrappedNode()
public AccessLevel accessLevel()
accessLevel in interface HasAccessLevelCopyright © 2016. All rights reserved.