01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package org.codehaus.aspectwerkz.transform.inlining.compiler;
08:
09: import org.codehaus.aspectwerkz.expression.ExpressionContext;
10:
11: /**
12: * Holds info sufficient for picking out the join points we are interested in advising.
13: *
14: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
15: */
16: final public class MatchingJoinPointInfo {
17: private final Class m_joinPointClass;
18: private final CompilationInfo m_compilationInfo;
19: private final ExpressionContext m_expressionContext;
20:
21: public MatchingJoinPointInfo(final Class joinPointClass,
22: final CompilationInfo compilationInfo,
23: final ExpressionContext expressionContext) {
24: m_joinPointClass = joinPointClass;
25: m_compilationInfo = compilationInfo;
26: m_expressionContext = expressionContext;
27: }
28:
29: public Class getJoinPointClass() {
30: return m_joinPointClass;
31: }
32:
33: public CompilationInfo getCompilationInfo() {
34: return m_compilationInfo;
35: }
36:
37: public ExpressionContext getExpressionContext() {
38: return m_expressionContext;
39: }
40:
41: public int hashCode() {
42: return m_compilationInfo.hashCode();
43: }
44:
45: public boolean equals(Object o) {
46: return ((MatchingJoinPointInfo) o).m_compilationInfo == m_compilationInfo;
47: }
48: }
|