1 4 package com.tc.aspectwerkz.expression; 5 6 import java.io.Serializable ; 7 8 13 public class PointcutType implements Serializable { 14 public static final PointcutType EXECUTION = new PointcutType("execution"); 15 16 public static final PointcutType CALL = new PointcutType("call"); 17 18 public static final PointcutType SET = new PointcutType("set"); 19 20 public static final PointcutType GET = new PointcutType("getDefault"); 21 22 public static final PointcutType HANDLER = new PointcutType("handler"); 23 24 public static final PointcutType WITHIN = new PointcutType("within"); 25 28 public static final PointcutType STATIC_INITIALIZATION = new PointcutType("staticinitialization"); 29 30 38 private final String m_name; 39 40 private PointcutType(String name) { 41 m_name = name; 42 } 43 44 public String toString() { 45 return m_name; 46 } 47 48 public boolean equals(Object o) { 49 if (this == o) { 50 return true; 51 } 52 if (!(o instanceof PointcutType)) { 53 return false; 54 } 55 final PointcutType pointcutType = (PointcutType) o; 56 if ((m_name != null) ? (!m_name.equals(pointcutType.m_name)) : (pointcutType.m_name != null)) { 57 return false; 58 } 59 return true; 60 } 61 62 public int hashCode() { 63 return ((m_name != null) ? m_name.hashCode() : 0); 64 } 65 } | Popular Tags |