public static class JavaParserEnumDeclaration.ValueOfMethod extends Object implements ResolvedMethodDeclaration, TypeVariableResolutionCapability
public static E valueOf(String name), which returns the
enum constant of E with the specified name.| Constructor and Description |
|---|
ValueOfMethod(JavaParserEnumDeclaration enumDeclaration,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
AccessSpecifier |
accessSpecifier() |
ResolvedReferenceTypeDeclaration |
declaringType() |
String |
getName() |
int |
getNumberOfParams() |
int |
getNumberOfSpecifiedExceptions() |
ResolvedParameterDeclaration |
getParam(int i) |
ResolvedType |
getReturnType() |
ResolvedType |
getSpecifiedException(int index) |
List<ResolvedTypeParameterDeclaration> |
getTypeParameters() |
MethodUsage |
getUsage(Node node) |
boolean |
isAbstract() |
boolean |
isDefaultMethod() |
boolean |
isStatic() |
MethodUsage |
resolveTypeVariables(Context context,
List<ResolvedType> parameterTypes) |
Optional<Node> |
toAst() |
String |
toDescriptor() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisReturnTypeSubstituablefindTypeParameter, formalParameterTypes, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameterasEnumConstant, asField, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isType, isVariabletoAstisGenericpublic ValueOfMethod(JavaParserEnumDeclaration enumDeclaration, TypeSolver typeSolver)
public ResolvedReferenceTypeDeclaration declaringType()
declaringType in interface ResolvedMethodLikeDeclarationpublic ResolvedType getReturnType()
getReturnType in interface ResolvedMethodDeclarationpublic int getNumberOfParams()
getNumberOfParams in interface ResolvedMethodLikeDeclarationpublic ResolvedParameterDeclaration getParam(int i)
getParam in interface ResolvedMethodLikeDeclarationpublic MethodUsage getUsage(Node node)
public MethodUsage resolveTypeVariables(Context context, List<ResolvedType> parameterTypes)
resolveTypeVariables in interface TypeVariableResolutionCapabilitypublic boolean isAbstract()
isAbstract in interface ResolvedMethodDeclarationpublic boolean isDefaultMethod()
isDefaultMethod in interface ResolvedMethodDeclarationpublic boolean isStatic()
isStatic in interface ResolvedMethodDeclarationpublic String getName()
getName in interface ResolvedDeclarationpublic List<ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface ResolvedTypeParametrizablepublic AccessSpecifier accessSpecifier()
accessSpecifier in interface HasAccessSpecifierpublic int getNumberOfSpecifiedExceptions()
getNumberOfSpecifiedExceptions in interface ResolvedMethodLikeDeclarationpublic ResolvedType getSpecifiedException(int index)
getSpecifiedException in interface ResolvedMethodLikeDeclarationpublic Optional<Node> toAst()
toAst in interface AssociableToASTpublic String toDescriptor()
toDescriptor in interface ResolvedMethodDeclarationCopyright © 2007–2023. All rights reserved.