Interface ResolvedTypePatternDeclaration
- All Superinterfaces:
AssociableToAST, ResolvedDeclaration, ResolvedValueDeclaration
- All Known Implementing Classes:
JavaParserTypePatternDeclaration, ReflectionPatternDeclaration
Declaration of a type pattern expression.
WARNING: Implemented fairly blindly. Unsure if required or even appropriate. Use with extreme caution.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResolvedTypePatternDeclarationReturn this as a PatternDeclaration or throw an UnsupportedOperationExceptiondefault Stringdefault booleanhasName()Anonymous classes do not have a name, for example.default booleanDoes this declaration represents a pattern declaration?Methods inherited from interface AssociableToAST
toAst, toAstMethods inherited from interface ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asType, getName, isEnumConstant, isField, isMethod, isParameter, isType, isVariableMethods inherited from interface ResolvedValueDeclaration
getType
-
Method Details
-
isTypePattern
default boolean isTypePattern()Description copied from interface:ResolvedDeclarationDoes this declaration represents a pattern declaration?- Specified by:
isTypePatternin interfaceResolvedDeclaration
-
asTypePattern
Description copied from interface:ResolvedDeclarationReturn this as a PatternDeclaration or throw an UnsupportedOperationException- Specified by:
asTypePatternin interfaceResolvedDeclaration
-
hasName
default boolean hasName()Description copied from interface:ResolvedDeclarationAnonymous classes do not have a name, for example.- Specified by:
hasNamein interfaceResolvedDeclaration
-
describeType
-