Class MatchMethodEntry

  • All Implemented Interfaces:
    ObligationPolicyDatabaseEntry

    public class MatchMethodEntry
    extends java.lang.Object
    implements ObligationPolicyDatabaseEntry
    An ObligationPolicyDatabaseEntry which creates or deletes an obligation based on a call to a specified method.
    Author:
    David Hovemeyer
    • Method Detail

      • getActions

        public boolean getActions​(org.apache.bcel.generic.ReferenceType receiverType,
                                  java.lang.String methodName,
                                  java.lang.String signature,
                                  boolean isStatic,
                                  java.util.Collection<ObligationPolicyDatabaseAction> actionList)
        Description copied from interface: ObligationPolicyDatabaseEntry
        Get the ObligationPolicyDatabaseActions that should be applied when the method described by the parameters is called.
        Specified by:
        getActions in interface ObligationPolicyDatabaseEntry
        Parameters:
        receiverType - receiver type of called method
        methodName - name of called method
        signature - signature of called method
        isStatic - true if called method is static, false otherwise
        actionList - List of ObligationPolicyDatabaseActions to be applied when a called method is matched by this entry
        Returns:
        true if one or more actions were added, false if no actions were added
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object