API

Function Type Denotes Caller
Must
Retain
May be
Calling
Object
May be
Null
May be
< 1
Is false when... Value following Affix Removal
addPrefix Affix Newly added prefix See Note 1 No No No - -
addSuffix Affix Newly added suffix See Note 1 No No No - -
addWrapper Wrapper Pair of newly added affixes See Note 2 No No No - -
getVersion string Current version of AspectJS No - - - - -
getPfixTot number Total prefixes for interceptee No No No No - -
getSfixTot number Total suffixes for interceptee No No No No - -
getFirstPfix Affix Interceptee's first prefix, if present See Note 3 No No No - -
getLastPfix Affix Interceptee's last prefix, if present See Note 3 No No No - -
getFirstSfix Affix Interceptee's first suffix, if present See Note 3 No Yes No - -
getLastSfix Affix Interceptee's last suffix, if present See Note 3 No Yes No - -
addBefore Affix Newly added affix See Note 1 No No No - undefined
addAfter Affix Newly added affix See Note 1 No No No - undefined
isAttached boolean Attachment state of affix(es) No - No No Affix is detached false
getAffixTot number Total affixes in a prefix/suffix set No No No No - 0
getFirstSib Affix Affix's first sibling See Note 3 Yes No No - Affix on which method is called
getLastSib Affix Affix's last sibling See Note 3 Yes No No - Affix on which method is called
getPrev Affix Affix's previous sibling See Note 3 Yes No No - Affix on which method is called
getNext Affix Affix's next sibling See Note 3 Yes No No - Affix on which method is called
getFunc function - - - - - - function
getArg * - - - - - - *
getExecs number Total executions remaining for affix No - No Yes - 0
getSuspensions number Affix's degree of suspension No - No No - 0
promote boolean Success of promotion attempt No - No No Affix(es) not promoted false
demote boolean Success of demotion attempt No - No No Affix(es) not demoted false
getPrefix Affix Wrapper's prefix member No No No No - Affix
getSuffix Affix Wrapper's suffix member No No No No - Affix
interceptee * Anything User Decides Yes Yes Yes User decides -
onInterceptionRemoval * Anything User Decides Yes Yes Yes User decides -
prefix * Anything User Decides Yes Yes Yes User decides -
suffix * Anything User Decides Yes Yes Yes User decides -

Notes:

  1. Yes, where Execs === Infinity, and where the Affix may need subsequent removal.
  2. Yes, where at least one Affix's Execs === Infinity, and where that Affix may need subsequent removal.
  3. Yes, where all references to the Affix-object were lost previously, where the Affix's Execs === Infinity, and where the Affix must be removed subsequently.