Class JavaParserParameterDeclaration

  • All Implemented Interfaces:
    com.github.javaparser.resolution.declarations.AssociableToAST, com.github.javaparser.resolution.declarations.ResolvedDeclaration, com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration, com.github.javaparser.resolution.declarations.ResolvedValueDeclaration

    public class JavaParserParameterDeclaration
    extends Object
    implements com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration
    Author:
    Federico Tomassetti
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaParserParameterDeclaration​(com.github.javaparser.ast.body.Parameter wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getName()  
      com.github.javaparser.resolution.types.ResolvedType getType()  
      com.github.javaparser.ast.body.Parameter getWrappedNode()
      Returns the JavaParser node associated with this JavaParserParameterDeclaration.
      boolean isVariadic()  
      Optional<com.github.javaparser.ast.Node> toAst()  
      • 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​(com.github.javaparser.ast.body.Parameter wrappedNode,
                                              com.github.javaparser.resolution.TypeSolver typeSolver)
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
      • isVariadic

        public boolean isVariadic()
        Specified by:
        isVariadic in interface com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration
      • getType

        public com.github.javaparser.resolution.types.ResolvedType getType()
        Specified by:
        getType in interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
      • getWrappedNode

        public com.github.javaparser.ast.body.Parameter getWrappedNode()
        Returns the JavaParser node associated with this JavaParserParameterDeclaration.
        Returns:
        A visitable JavaParser node wrapped by this object.
      • toAst

        public Optional<com.github.javaparser.ast.Node> toAst()
        Specified by:
        toAst in interface com.github.javaparser.resolution.declarations.AssociableToAST