Class JavaParserParameterDeclaration

  • All Implemented Interfaces:
    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.symbolsolver.model.resolution.TypeSolver typeSolver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration asParameter()  
      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 isField()  
      boolean isParameter()  
      boolean isType()  
      boolean isVariadic()  
      • 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

        describeType, hasName
    • Constructor Detail

      • JavaParserParameterDeclaration

        public JavaParserParameterDeclaration​(com.github.javaparser.ast.body.Parameter wrappedNode,
                                              com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
    • Method Detail

      • getName

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

        public boolean isField()
        Specified by:
        isField in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
      • isParameter

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

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

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

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

        public com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration asParameter()
        Specified by:
        asParameter in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
        Specified by:
        asParameter in interface com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration
      • 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.