Class JavaParserParameterDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserParameterDeclaration
-
- All Implemented Interfaces:
AssociableToAST,ResolvedDeclaration,ResolvedParameterDeclaration,ResolvedValueDeclaration
public class JavaParserParameterDeclaration extends Object implements ResolvedParameterDeclaration
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description JavaParserParameterDeclaration(Parameter wrappedNode, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()ResolvedTypegetType()ParametergetWrappedNode()Returns the JavaParser node associated with this JavaParserParameterDeclaration.booleanisVariadic()Optional<Node>toAst()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asType, asTypePattern, isEnumConstant, isField, isMethod, isType, isTypePattern, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration
asParameter, describeType, hasName, isParameter
-
-
-
-
Constructor Detail
-
JavaParserParameterDeclaration
public JavaParserParameterDeclaration(Parameter wrappedNode, TypeSolver typeSolver)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceResolvedDeclaration
-
isVariadic
public boolean isVariadic()
- Specified by:
isVariadicin interfaceResolvedParameterDeclaration
-
getType
public ResolvedType getType()
- Specified by:
getTypein interfaceResolvedValueDeclaration
-
getWrappedNode
public Parameter getWrappedNode()
Returns the JavaParser node associated with this JavaParserParameterDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
toAst
public Optional<Node> toAst()
- Specified by:
toAstin interfaceAssociableToAST
-
-