Interface ResolvedParameterDeclaration
- All Superinterfaces:
ResolvedDeclaration
,ResolvedValueDeclaration
Declaration of a parameter.
- Author:
- Federico Tomassetti
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResolvedParameterDeclaration
Return this as a ParameterDeclaration or throw an UnsupportedOperationExceptiondefault String
Describe the type of the parameter.default boolean
hasName()
Necessary because parameters obtained through reflection could not have a name.default boolean
Does this declaration represents a method parameter?boolean
Is 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, isVariable
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
getType
-
Method Details
-
isParameter
default boolean isParameter()Description copied from interface:ResolvedDeclaration
Does this declaration represents a method parameter?- Specified by:
isParameter
in interfaceResolvedDeclaration
-
hasName
default boolean hasName()Necessary because parameters obtained through reflection could not have a name.- Specified by:
hasName
in interfaceResolvedDeclaration
-
asParameter
Description copied from interface:ResolvedDeclaration
Return this as a ParameterDeclaration or throw an UnsupportedOperationException- Specified by:
asParameter
in 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.
-