org.codehaus.aspectwerkz
Class AdviceInfo

java.lang.Object
  extended byorg.codehaus.aspectwerkz.AdviceInfo
All Implemented Interfaces:
Serializable

public class AdviceInfo
extends Object
implements Serializable

Contains advice info, like indexes describing the aspect and a method (advice or introduced), aspect manager etc.

Author:
Jonas Bonér , Alexandre Vasseur
See Also:
Serialized Form

Constructor Summary
AdviceInfo(int aspectIndex, int methodIndex, AspectManager aspectManager, AdviceType type, String specialArgumentType)
          Creates a new advice info.
 
Method Summary
 int getAspectIndex()
          Return the aspect index.
 AspectManager getAspectManager()
          Return the aspectManager.
 int getMethodIndex()
          Return the method index.
 int[] getMethodToArgIndexes()
          Returns the advice method to target method arg index mapping.
 String getSpecialArgumentType()
          Returns the special argument type.
 AdviceType getType()
          Returns the advice type.
 void setMethodToArgIndexes(int[] map)
          Sets the advice method to target method arg mapping A value of -1 means "not mapped"
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdviceInfo

public AdviceInfo(int aspectIndex,
                  int methodIndex,
                  AspectManager aspectManager,
                  AdviceType type,
                  String specialArgumentType)
Creates a new advice info.

Parameters:
aspectIndex - the aspect index
methodIndex - the method index
aspectManager - the aspectManager
type - the advice type
specialArgumentType - the special arg type
Method Detail

getAspectIndex

public int getAspectIndex()
Return the aspect index.

Returns:
the aspect index

getMethodIndex

public int getMethodIndex()
Return the method index.

Returns:
the method index

getAspectManager

public AspectManager getAspectManager()
Return the aspectManager.

Returns:
the aspect manager

setMethodToArgIndexes

public void setMethodToArgIndexes(int[] map)
Sets the advice method to target method arg mapping A value of -1 means "not mapped"

Parameters:
map -

getMethodToArgIndexes

public int[] getMethodToArgIndexes()
Returns the advice method to target method arg index mapping.

Returns:
the indexes

getSpecialArgumentType

public String getSpecialArgumentType()
Returns the special argument type.

Returns:

getType

public AdviceType getType()
Returns the advice type.

Returns:

toString

public String toString()


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.