Interface ResolvedParameterDeclaration
- All Superinterfaces:
AssociableToAST, ResolvedDeclaration, ResolvedValueDeclaration
- All Known Implementing Classes:
JavaParserParameterDeclaration, JavassistParameterDeclaration, ReflectionParameterDeclaration
Declaration of a parameter.
-
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 AssociableToAST
toAst, toAstMethods inherited from interface ResolvedDeclaration
asEnumConstant, asField, asMethod, asType, asTypePattern, getName, isEnumConstant, isField, isMethod, isType, isTypePattern, isVariableMethods inherited from interface 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.
-