Class ReflectionParameterDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.reflectionmodel.ReflectionParameterDeclaration
-
- All Implemented Interfaces:
ResolvedDeclaration
,ResolvedParameterDeclaration
,ResolvedValueDeclaration
public class ReflectionParameterDeclaration extends Object implements ResolvedParameterDeclaration
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description ReflectionParameterDeclaration(Class<?> type, Type genericType, TypeSolver typeSolver, boolean variadic, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getName()
ResolvedType
getType()
int
hashCode()
boolean
hasName()
boolean
isField()
boolean
isParameter()
boolean
isType()
boolean
isVariadic()
String
toString()
-
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, asType, isEnumConstant, isMethod, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration
asParameter, describeType
-
-
-
-
Constructor Detail
-
ReflectionParameterDeclaration
public ReflectionParameterDeclaration(Class<?> type, Type genericType, TypeSolver typeSolver, boolean variadic, String name)
- Parameters:
type
-genericType
-typeSolver
-variadic
-name
- can potentially be null
-
-
Method Detail
-
getName
public String 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
-
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
public ResolvedType getType()
- Specified by:
getType
in interfaceResolvedValueDeclaration
-
-