Class JavassistParameterDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.javassistmodel.JavassistParameterDeclaration
- All Implemented Interfaces:
AssociableToAST
,ResolvedDeclaration
,ResolvedParameterDeclaration
,ResolvedValueDeclaration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private ResolvedType
private TypeSolver
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionJavassistParameterDeclaration
(ResolvedType type, TypeSolver typeSolver, boolean variadic, String name) JavassistParameterDeclaration
(javassist.CtClass type, TypeSolver typeSolver, boolean variadic, String name) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Should return the name or return null if the name is not available.getType()
Type of the declaration.boolean
hasName()
Necessary because parameters obtained through reflection could not have a name.boolean
isField()
Does this declaration represents a class field?boolean
Does this declaration represents a method parameter?boolean
isType()
Does this declaration represents a type?boolean
Is this parameter declared as variadic?toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAst
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asType, asTypePattern, isEnumConstant, isMethod, isTypePattern, isVariable
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration
asParameter, describeType
-
Field Details
-
type
-
typeSolver
-
variadic
private boolean variadic -
name
-
-
Constructor Details
-
JavassistParameterDeclaration
public JavassistParameterDeclaration(javassist.CtClass type, TypeSolver typeSolver, boolean variadic, String name) -
JavassistParameterDeclaration
public JavassistParameterDeclaration(ResolvedType type, TypeSolver typeSolver, boolean variadic, String name)
-
-
Method Details
-
toString
-
hasName
public boolean hasName()Description copied from interface:ResolvedParameterDeclaration
Necessary because parameters obtained through reflection could not have a name.- Specified by:
hasName
in interfaceResolvedDeclaration
- Specified by:
hasName
in interfaceResolvedParameterDeclaration
-
getName
Description copied from interface:ResolvedDeclaration
Should return the name or return null if the name is not available.- Specified by:
getName
in interfaceResolvedDeclaration
-
isField
public boolean isField()Description copied from interface:ResolvedDeclaration
Does this declaration represents a class field?- Specified by:
isField
in interfaceResolvedDeclaration
-
isParameter
public boolean isParameter()Description copied from interface:ResolvedDeclaration
Does this declaration represents a method parameter?- Specified by:
isParameter
in interfaceResolvedDeclaration
- Specified by:
isParameter
in interfaceResolvedParameterDeclaration
-
isVariadic
public boolean isVariadic()Description copied from interface:ResolvedParameterDeclaration
Is this parameter declared as variadic?- Specified by:
isVariadic
in interfaceResolvedParameterDeclaration
-
isType
public boolean isType()Description copied from interface:ResolvedDeclaration
Does this declaration represents a type?- Specified by:
isType
in interfaceResolvedDeclaration
-
getType
Description copied from interface:ResolvedValueDeclaration
Type of the declaration.- Specified by:
getType
in interfaceResolvedValueDeclaration
-