Class JavaParserTypePatternDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserTypePatternDeclaration
-
- All Implemented Interfaces:
AssociableToAST,ResolvedDeclaration,ResolvedTypePatternDeclaration,ResolvedValueDeclaration
public class JavaParserTypePatternDeclaration extends Object implements ResolvedTypePatternDeclaration
WARNING: Implemented fairly blindly. Unsure if required or even appropriate. Use with extreme caution.- Author:
- Roger Howell
-
-
Constructor Summary
Constructors Constructor Description JavaParserTypePatternDeclaration(TypePatternExpr wrappedNode, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()ResolvedTypegetType()TypePatternExprgetWrappedNode()Returns the JavaParser node associated with this JavaParserPatternDeclaration.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, asParameter, asType, 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(TypePatternExpr wrappedNode, TypeSolver typeSolver)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceResolvedDeclaration
-
getType
public ResolvedType getType()
- Specified by:
getTypein interfaceResolvedValueDeclaration
-
getWrappedNode
public TypePatternExpr getWrappedNode()
Returns the JavaParser node associated with this JavaParserPatternDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
toAst
public Optional<Node> toAst()
- Specified by:
toAstin interfaceAssociableToAST
-
-