Interface ResolvedTypePatternDeclaration
-
- All Superinterfaces:
AssociableToAST
,ResolvedDeclaration
,ResolvedValueDeclaration
- All Known Implementing Classes:
JavaParserTypePatternDeclaration
,ReflectionPatternDeclaration
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.
- See Also:
TypePatternExpr
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ResolvedTypePatternDeclaration
asTypePattern()
Return this as a PatternDeclaration or throw an UnsupportedOperationExceptiondefault java.lang.String
describeType()
default boolean
hasName()
Anonymous classes do not have a name, for example.default boolean
isTypePattern()
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:ResolvedDeclaration
Does this declaration represents a pattern declaration?- Specified by:
isTypePattern
in interfaceResolvedDeclaration
-
asTypePattern
default ResolvedTypePatternDeclaration asTypePattern()
Description copied from interface:ResolvedDeclaration
Return this as a PatternDeclaration or throw an UnsupportedOperationException- Specified by:
asTypePattern
in interfaceResolvedDeclaration
-
hasName
default boolean hasName()
Description copied from interface:ResolvedDeclaration
Anonymous classes do not have a name, for example.- Specified by:
hasName
in interfaceResolvedDeclaration
-
describeType
default java.lang.String describeType()
-
-