Invention Grant
US07657874B2 Pattern types as constraints on generic type parameters 有权
模式类型作为通用类型参数的约束

Pattern types as constraints on generic type parameters
Abstract:
A system and method for constraining generic types is disclosed. In brief, the subject invention provides a pattern type for defining a set of one or more parameter constraints. Rather than being confined to a predetermined set of hard-coded constraints in an execution engine, a pattern type can be specified as an extensible constraint mechanism for generic type parameters. According to one aspect of the invention, the pattern type can manifest itself as a class including one or more properties and/or features. The shape of the pattern type can then be compared or matched to instantiated type parameters to determine constraint satisfaction.
Public/Granted literature
Information query
Patent Agency Ranking
0/0