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 booleanequals(Object o)StringgetName()ResolvedTypegetType()inthashCode()booleanhasName()booleanisField()booleanisParameter()booleanisType()booleanisVariadic()StringtoString()-
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:
getNamein interfaceResolvedDeclaration- Returns:
- the name, which can be potentially null
-
hasName
public boolean hasName()
- Specified by:
hasNamein interfaceResolvedDeclaration- Specified by:
hasNamein interfaceResolvedParameterDeclaration
-
isField
public boolean isField()
- Specified by:
isFieldin interfaceResolvedDeclaration
-
isParameter
public boolean isParameter()
- Specified by:
isParameterin interfaceResolvedDeclaration- Specified by:
isParameterin interfaceResolvedParameterDeclaration
-
isVariadic
public boolean isVariadic()
- Specified by:
isVariadicin interfaceResolvedParameterDeclaration
-
isType
public boolean isType()
- Specified by:
isTypein interfaceResolvedDeclaration
-
getType
public ResolvedType getType()
- Specified by:
getTypein interfaceResolvedValueDeclaration
-
-