Class JavaParserTypePatternDeclaration

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

    public class JavaParserTypePatternDeclaration
    extends java.lang.Object
    implements com.github.javaparser.resolution.declarations.ResolvedTypePatternDeclaration
    WARNING: Implemented fairly blindly. Unsure if required or even appropriate. Use with extreme caution.
    Author:
    Roger Howell
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaParserTypePatternDeclaration​(com.github.javaparser.ast.expr.TypePatternExpr wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      com.github.javaparser.resolution.types.ResolvedType getType()  
      com.github.javaparser.ast.expr.TypePatternExpr getWrappedNode()
      Returns the JavaParser node associated with this JavaParserPatternDeclaration.
      java.util.Optional<com.github.javaparser.ast.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, asParameter, asType, isArrayLength, isEnumConstant, isField, isMethod, isParameter, isType, isVariable
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypePatternDeclaration

        asTypePattern, describeType, hasName, isTypePattern
    • Constructor Detail

      • JavaParserTypePatternDeclaration

        public JavaParserTypePatternDeclaration​(com.github.javaparser.ast.expr.TypePatternExpr wrappedNode,
                                                com.github.javaparser.resolution.TypeSolver typeSolver)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName 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
      • getWrappedNode

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

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