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<MethodDeclaration> |
toAst() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findTypeParameter, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameter
asEnumConstant, asField, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isType, isVariable
isGeneric
public ValueOfMethod(JavaParserEnumDeclaration enumDeclaration, TypeSolver typeSolver)
public ResolvedReferenceTypeDeclaration declaringType()
declaringType
in interface ResolvedMethodLikeDeclaration
public ResolvedType getReturnType()
getReturnType
in interface ResolvedMethodDeclaration
public int getNumberOfParams()
getNumberOfParams
in interface ResolvedMethodLikeDeclaration
public ResolvedParameterDeclaration getParam(int i)
getParam
in interface ResolvedMethodLikeDeclaration
public MethodUsage getUsage(Node node)
public MethodUsage resolveTypeVariables(Context context, List<ResolvedType> parameterTypes)
resolveTypeVariables
in interface TypeVariableResolutionCapability
public boolean isAbstract()
isAbstract
in interface ResolvedMethodDeclaration
public boolean isDefaultMethod()
isDefaultMethod
in interface ResolvedMethodDeclaration
public boolean isStatic()
isStatic
in interface ResolvedMethodDeclaration
public String getName()
getName
in interface ResolvedDeclaration
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface ResolvedTypeParametrizable
public AccessSpecifier accessSpecifier()
accessSpecifier
in interface HasAccessSpecifier
public int getNumberOfSpecifiedExceptions()
getNumberOfSpecifiedExceptions
in interface ResolvedMethodLikeDeclaration
public ResolvedType getSpecifiedException(int index)
getSpecifiedException
in interface ResolvedMethodLikeDeclaration
public Optional<MethodDeclaration> toAst()
toAst
in interface AssociableToAST<MethodDeclaration>
Copyright © 2007–2021. All rights reserved.