1 8 package org.codehaus.aspectwerkz.expression; 9 10 import java.io.Serializable ; 11 12 17 public class PointcutType implements Serializable { 18 public static final PointcutType EXECUTION = new PointcutType("execution"); 19 20 public static final PointcutType CALL = new PointcutType("call"); 21 22 public static final PointcutType SET = new PointcutType("set"); 23 24 public static final PointcutType GET = new PointcutType("get"); 25 26 public static final PointcutType HANDLER = new PointcutType("handler"); 27 28 public static final PointcutType WITHIN = new PointcutType("within"); 29 32 public static final PointcutType STATIC_INITIALIZATION = new PointcutType("staticinitialization"); 33 34 42 private final String m_name; 43 44 private PointcutType(String name) { 45 m_name = name; 46 } 47 48 public String toString() { 49 return m_name; 50 } 51 52 public boolean equals(Object o) { 53 if (this == o) { 54 return true; 55 } 56 if (!(o instanceof PointcutType)) { 57 return false; 58 } 59 final PointcutType pointcutType = (PointcutType) o; 60 if ((m_name != null) ? (!m_name.equals(pointcutType.m_name)) : (pointcutType.m_name != null)) { 61 return false; 62 } 63 return true; 64 } 65 66 public int hashCode() { 67 return ((m_name != null) ? m_name.hashCode() : 0); 68 } 69 } | Popular Tags |