Interface ResolvedParameterDeclaration
-
- All Superinterfaces:
ResolvedDeclaration
,ResolvedValueDeclaration
public interface ResolvedParameterDeclaration extends ResolvedValueDeclaration
Declaration of a parameter.- Author:
- Federico Tomassetti
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResolvedParameterDeclaration
asParameter()
Return this as a ParameterDeclaration or throw an UnsupportedOperationExceptiondefault String
describeType()
Describe the type of the parameter.default boolean
hasName()
Necessary because parameters obtained through reflection could not have a name.default boolean
isParameter()
Does this declaration represents a method parameter?boolean
isVariadic()
Is this parameter declared as variadic?-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asType, getName, isEnumConstant, isField, isMethod, isType, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
getType
-
-
-
-
Method Detail
-
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
default ResolvedParameterDeclaration 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
default String describeType()
Describe the type of the parameter. In practice add three dots to the type name if the parameter is variadic.
-
-