abc.weaving.aspectinfo
Class AccessorGet

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

public class AccessorGet
extends AccessorMethod

Author:
Pavel Avgustinov 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 no arguments and returning the value of the appropriate field.

Constructor Summary
AccessorGet(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

AccessorGet

public AccessorGet(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