next up previous
Next: Class Name Pattern Expressions Up: Patterns Previous: Name Patterns

Type Pattern Expressions

This section defines type pattern expressions. These are a superset of class name pattern expressions. The main difference is what is allowed at the leaves of the pattern. In the case of class name patterns the leaves were name patterns, whereas with type pattern expressions the leaves can be any valid type, including primitive types, void and array types.

<type_pattern_expr> ::= \hspace{1in} \\
\alt <name_pattern>
\alt <name_pattern> '+'

hendren 2004-09-02