Class JavaParserTypePatternDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.declarations.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 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
ConstructorsConstructorDescriptionJavaParserTypePatternDeclaration(com.github.javaparser.ast.expr.TypePatternExpr wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAstMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asType, isArrayLength, isEnumConstant, isField, isMethod, isParameter, isType, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypePatternDeclaration
asTypePattern, describeType, hasName, isTypePattern
-
Constructor Details
-
JavaParserTypePatternDeclaration
public JavaParserTypePatternDeclaration(com.github.javaparser.ast.expr.TypePatternExpr wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver)
-
-
Method Details
-
getName
- Specified by:
getNamein interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
getType
public com.github.javaparser.resolution.types.ResolvedType getType()- Specified by:
getTypein interfacecom.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
- Specified by:
toAstin interfacecom.github.javaparser.resolution.declarations.AssociableToAST
-