Class ReflectionParameterDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.reflectionmodel.ReflectionParameterDeclaration
- All Implemented Interfaces:
ResolvedDeclaration
,ResolvedParameterDeclaration
,ResolvedValueDeclaration
- Author:
- Federico Tomassetti
-
Constructor Summary
ConstructorsConstructorDescriptionReflectionParameterDeclaration(Class<?> type, Type genericType, TypeSolver typeSolver, boolean variadic, String name)
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asPattern, asType, isEnumConstant, isMethod, isPattern, isVariable
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration
asParameter, describeType
-
Constructor Details
-
ReflectionParameterDeclaration
public ReflectionParameterDeclaration(Class<?> type, Type genericType, TypeSolver typeSolver, boolean variadic, String name)- Parameters:
type
-genericType
-typeSolver
-variadic
-name
- can potentially be null
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceResolvedDeclaration
- Returns:
- the name, which can be potentially null
-
hasName
public boolean hasName()- Specified by:
hasName
in interfaceResolvedDeclaration
- Specified by:
hasName
in interfaceResolvedParameterDeclaration
-
toString
-
isField
public boolean isField()- Specified by:
isField
in interfaceResolvedDeclaration
-
isParameter
public boolean isParameter()- Specified by:
isParameter
in interfaceResolvedDeclaration
- Specified by:
isParameter
in interfaceResolvedParameterDeclaration
-
isVariadic
public boolean isVariadic()- Specified by:
isVariadic
in interfaceResolvedParameterDeclaration
-
isType
public boolean isType()- Specified by:
isType
in interfaceResolvedDeclaration
-
getType
- Specified by:
getType
in interfaceResolvedValueDeclaration
-
equals
-
hashCode
public int hashCode()
-