Class JavaParserEnumDeclaration.ValueOfMethod
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserEnumDeclaration.ValueOfMethod
- All Implemented Interfaces:
AssociableToAST<MethodDeclaration>,HasAccessSpecifier,ResolvedDeclaration,ResolvedMethodDeclaration,ResolvedMethodLikeDeclaration,ResolvedTypeParametrizable,TypeVariableResolutionCapability
- Enclosing class:
- JavaParserEnumDeclaration
public static class JavaParserEnumDeclaration.ValueOfMethod
extends Object
implements ResolvedMethodDeclaration, TypeVariableResolutionCapability
Needed by ContextHelper
An implicitly declared method
public static E valueOf(String name), which returns the
enum constant of E with the specified name.-
Constructor Summary
ConstructorsConstructorDescriptionValueOfMethod(JavaParserEnumDeclaration enumDeclaration, TypeSolver typeSolver) -
Method Summary
Modifier and TypeMethodDescriptiongetName()intintgetParam(int i)getSpecifiedException(int index)booleanbooleanbooleanisStatic()resolveTypeVariables(Context context, List<ResolvedType> parameterTypes)toAst()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isType, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
findTypeParameter, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameterMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Constructor Details
-
ValueOfMethod
-
-
Method Details
-
declaringType
- Specified by:
declaringTypein interfaceResolvedMethodLikeDeclaration
-
getReturnType
- Specified by:
getReturnTypein interfaceResolvedMethodDeclaration
-
getNumberOfParams
public int getNumberOfParams()- Specified by:
getNumberOfParamsin interfaceResolvedMethodLikeDeclaration
-
getParam
- Specified by:
getParamin interfaceResolvedMethodLikeDeclaration
-
getUsage
-
resolveTypeVariables
- Specified by:
resolveTypeVariablesin interfaceTypeVariableResolutionCapability
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstractin interfaceResolvedMethodDeclaration
-
isDefaultMethod
public boolean isDefaultMethod()- Specified by:
isDefaultMethodin interfaceResolvedMethodDeclaration
-
isStatic
public boolean isStatic()- Specified by:
isStaticin interfaceResolvedMethodDeclaration
-
getName
- Specified by:
getNamein interfaceResolvedDeclaration
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-
accessSpecifier
- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
getNumberOfSpecifiedExceptions
public int getNumberOfSpecifiedExceptions()- Specified by:
getNumberOfSpecifiedExceptionsin interfaceResolvedMethodLikeDeclaration
-
getSpecifiedException
- Specified by:
getSpecifiedExceptionin interfaceResolvedMethodLikeDeclaration
-
toAst
- Specified by:
toAstin interfaceAssociableToAST<MethodDeclaration>
-