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.


\begin{blue}
\begin{grammar}
<type_pattern_expr> ::= \hspace{1in} \\
<or_type_...
...tive_type>}
\alt <name_pattern>
\alt <name_pattern> '+'
\end{grammar}\end{blue}



hendren 2004-09-02