KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > expression > SubtypePatternType


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.aspectwerkz.expression;
5
6 import java.io.Serializable JavaDoc;
7
8 /**
9  * Type safe enum for the different matching types.
10  *
11  * @author <a HREF="mailto:jboner@codehaus.org">Jonas BonŽr </a>
12  */

13 public class SubtypePatternType implements Serializable JavaDoc {
14
15   public static final SubtypePatternType NOT_HIERARCHICAL = new SubtypePatternType("NOT_HIERARCHICAL");
16
17   public static final SubtypePatternType MATCH_ON_ALL_METHODS = new SubtypePatternType("MATCH_ON_ALL_METHODS");
18
19   public static final SubtypePatternType MATCH_ON_BASE_TYPE_METHODS_ONLY = new SubtypePatternType(
20           "MATCH_ON_BASE_TYPE_METHODS_ONLY"
21   );
22
23   private final String JavaDoc myName;
24
25   /**
26    * Creates a new instance
27    *
28    * @param name
29    */

30   private SubtypePatternType(final String JavaDoc name) {
31     myName = name;
32   }
33
34   /**
35    * Returns the string representation.
36    *
37    * @return the string representation
38    */

39   public String JavaDoc toString() {
40     return myName;
41   }
42 }
Popular Tags