Interface ResolvedParameterDeclaration
- All Superinterfaces:
ResolvedDeclaration,ResolvedValueDeclaration
Declaration of a parameter.
- Author:
- Federico Tomassetti
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResolvedParameterDeclarationReturn this as a ParameterDeclaration or throw an UnsupportedOperationExceptiondefault StringDescribe the type of the parameter.default booleanhasName()Necessary because parameters obtained through reflection could not have a name.default booleanDoes this declaration represents a method parameter?booleanIs this parameter declared as variadic?Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asPattern, asType, getName, isEnumConstant, isField, isMethod, isPattern, isType, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
getType
-
Method Details
-
isParameter
default boolean isParameter()Description copied from interface:ResolvedDeclarationDoes this declaration represents a method parameter?- Specified by:
isParameterin interfaceResolvedDeclaration
-
hasName
default boolean hasName()Necessary because parameters obtained through reflection could not have a name.- Specified by:
hasNamein interfaceResolvedDeclaration
-
asParameter
Description copied from interface:ResolvedDeclarationReturn this as a ParameterDeclaration or throw an UnsupportedOperationException- Specified by:
asParameterin interfaceResolvedDeclaration
-
isVariadic
boolean isVariadic()Is this parameter declared as variadic? -
describeType
Describe the type of the parameter. In practice add three dots to the type name if the parameter is variadic.
-