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 String
getName()
ResolvedType
getType()
Parameter
getWrappedNode()
Returns the JavaParser node associated with this JavaParserParameterDeclaration.boolean
isVariadic()
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:
getName
in interfaceResolvedDeclaration
-
isVariadic
public boolean isVariadic()
- Specified by:
isVariadic
in interfaceResolvedParameterDeclaration
-
getType
public ResolvedType getType()
- Specified by:
getType
in 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:
toAst
in interfaceAssociableToAST
-
-