/**************************************************************************************
 * Copyright (c) Jonas Bon?r, Alexandre Vasseur. All rights reserved.                 *
 * http://aspectwerkz.codehaus.org                                                    *
 * ---------------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the QPL license       *
 * a copy of which has been included with this distribution in the license.txt file.  *
 **************************************************************************************/
package org.codehaus.aspectwerkz.expression;

/**
 * Type safe enum for the different matching types.
 * 
 * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
 */
public class SubtypePatternType {
    public static final SubtypePatternType NOT_HIERARCHICAL = new SubtypePatternType("NOT_HIERARCHICAL");

    public static final SubtypePatternType MATCH_ON_ALL_METHODS = new SubtypePatternType("MATCH_ON_ALL_METHODS");

    public static final SubtypePatternType MATCH_ON_BASE_TYPE_METHODS_ONLY = new SubtypePatternType(
        "MATCH_ON_BASE_TYPE_METHODS_ONLY");

    private final String myName;

    /**
     * Creates a new instance
     * 
     * @param name
     */
    private SubtypePatternType(String name) {
        myName = name;
    }

    /**
     * Returns the string representation.
     * 
     * @return the string representation
     */
    public String toString() {
        return myName;
    }
}