abc.weaving.aspectinfo
Class AccessorSet

java.lang.Object
  extended by abc.weaving.aspectinfo.AccessorMethod
      extended by abc.weaving.aspectinfo.AccessorSet

public class AccessorSet
extends AccessorMethod

Author:
pavel Class representing an accessor method for a field - given the appropriate information, it constructs a public method in the appropriate class, with the appropriate type, taking a single argument and setting the appropriate field's value to that argument, returning the new value.

Constructor Summary
AccessorSet(java.lang.String name, FieldInstance fi, ClassType target, Position pos)
           
 
Method Summary
 void addSootMethod(int modifiers)
          Get the SootMethod representing this accessor method with the given modifiers.
 void registerMethod(soot.SootMethod sm)
          Used to register the method's category with the static MethodCategory class.
 
Methods inherited from class abc.weaving.aspectinfo.AccessorMethod
addPosition, addSootMethod, getMemberInstance, getName, getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessorSet

public AccessorSet(java.lang.String name,
                   FieldInstance fi,
                   ClassType target,
                   Position pos)
Method Detail

addSootMethod

public void addSootMethod(int modifiers)
Description copied from class: AccessorMethod
Get the SootMethod representing this accessor method with the given modifiers. This method also adds the generated method to the target class.

Specified by:
addSootMethod in class AccessorMethod
Parameters:
modifiers - Modifiers to declare the method with - compare soot.Modifier

registerMethod

public void registerMethod(soot.SootMethod sm)
Description copied from class: AccessorMethod
Used to register the method's category with the static MethodCategory class. The default implementation (registering field get/set methods and dispatches) should be sufficient for most purposes.

Specified by:
registerMethod in class AccessorMethod