Interface ResolvedTypePatternDeclaration
-
- All Superinterfaces:
AssociableToAST,ResolvedDeclaration,ResolvedValueDeclaration
public interface ResolvedTypePatternDeclaration extends ResolvedValueDeclaration
Declaration of a type pattern expression.WARNING: Implemented fairly blindly. Unsure if required or even appropriate. Use with extreme caution.
- Author:
- Roger Howell
- See Also:
TypePatternExpr
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ResolvedTypePatternDeclarationasTypePattern()Return this as a PatternDeclaration or throw an UnsupportedOperationExceptiondefault StringdescribeType()default booleanhasName()Anonymous classes do not have a name, for example.default booleanisTypePattern()Does this declaration represents a pattern declaration?-
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAst
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asType, getName, isEnumConstant, isField, isMethod, isParameter, isType, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
getType
-
-
-
-
Method Detail
-
isTypePattern
default boolean isTypePattern()
Description copied from interface:ResolvedDeclarationDoes this declaration represents a pattern declaration?- Specified by:
isTypePatternin interfaceResolvedDeclaration
-
asTypePattern
default ResolvedTypePatternDeclaration 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
default String describeType()
-
-