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.aspectj;
08:
09: import org.codehaus.aspectwerkz.aspect.AdviceType;
10:
11: /**
12: * Struct for the AspectJ advice metadata.
13: *
14: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
15: * @TODO should be immutable
16: */
17: class AdviceInfo {
18: AdviceType type;
19: String aspectClassName;
20: String adviceMethodName;
21: String pointcut;
22: int extraParameterFlags;
23: String[] parameterTypes = new String[0];
24:
25: public String toString() {
26: StringBuffer stringRepr = new StringBuffer().append('[')
27: .append(type).append(',').append(aspectClassName)
28: .append(',').append(adviceMethodName).append(',')
29: .append(pointcut).append(',').append(
30: extraParameterFlags);
31: for (int i = 0; i < parameterTypes.length; i++) {
32: stringRepr.append(',').append(parameterTypes[i]);
33: }
34: stringRepr.append(']');
35: return stringRepr.toString();
36: }
37: }
|