archive-org.com » ORG » I » IOKE.ORG

Total: 746

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Kind: DefaultBehavior
    Inactive cells kind Active cells report Specs Inactive cells details kind Condition Error NativeException Active cells details report returns a representation of this error showing some information about the native exception show source method stackTrace s n format self exceptionStackTrace

    Original URL path: https://ioke.org/dok/release/kinds/Condition/Error/NativeException.html (2016-02-13)
    Open archived version from archive


  • Kind: DefaultBehavior
    kind Active cells report Specs Inactive cells details kind Condition Error NoSuchCell Active cells details report returns a representation of this error showing the name of the missing cell and the object that didn t have it show source method

    Original URL path: https://ioke.org/dok/release/kinds/Condition/Error/NoSuchCell.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    Type Mimics Condition Error Type Inactive cells kind Active cells report Specs Inactive cells details kind Condition Error Type IncorrectType Active cells details report returns a representation of this error

    Original URL path: https://ioke.org/dok/release/kinds/Condition/Error/Type/IncorrectType.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    Mimics Condition Inactive cells kind Active cells Specs Condition Warning Default should have the right kind show source Condition Warning Default should have kind Condition Warning Default Inactive cells details

    Original URL path: https://ioke.org/dok/release/kinds/Condition/Warning.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    argument and returns the difference between this instant and that instant in milliseconds DateTime should validate type of argument show source fn DateTime 4 should signal Condition Error Type IncorrectType should validate type of receiver show source DateTime should checkReceiverTypeOn DateTime now other returns true if the left hand side datetime is equal to the right hand side datetime inspect Returns a text inspection of the object DateTime inspect should

    Original URL path: https://ioke.org/dok/release/kinds/DateTime.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    should return nil when invoking call on an empty block show source fn call should be nil should be possible to execute it by invoking call on it show source fn 1 1 call should 2 x fn 42 4 x call x call should 46 should have access to variables in the scope it was defined in simple do show source x 26 fn x call should 26 x Origin mimic x do y 42 z fn y 1 call x z should 43 should have access to variables in the scope it was defined in more complicated do show source x Origin mimic x do y 42 z fn y 2 x z call should 44 should have access to variables in the scope it was defined in more nested blocks show source x Origin mimic x do y 42 z fn fn y 3 call x z call should 45 should have access to variables in the scope it was defined in method show source x Origin mimic x y method z 42 fn z 5 x y call should 47 should have access to variables in the scope it was defined in method getting self show source x Origin mimic x y method fn self x y call should x should take arguments show source fn x x call 42 should 42 fn x x 2 call 42 should 44 fn x y x y 2 call 3 7 should 12 should complain when given the wrong number of arguments show source fn fn call 42 should signal Condition Error Invocation TooManyArguments fn fn x x call should signal Condition Error Invocation TooFewArguments fn fn x x call 12 42 should signal Condition Error Invocation TooManyArguments should be able to update variables in the scope it was defined show source x Origin mimic x do y 42 fn y 43 call x y should 43 x Origin mimic x do y 44 zz fn y 45 x zz call x y should 45 should create a new variable when assigning something that doesn t exist show source fn blarg 42 blarg call should 42 cell blarg should be false should be possible to get the code for the block by calling code on it show source fn code should fn nil fn nil code should fn nil fn 1 code should fn 1 fn 1 1 code should fn 1 1 fn x x x code should fn x x x fn x 12 x x code should fn x 12 x x fn x x x x x code should fn x x x nx x fn x x x x x code should fn x nil x x nx x fn x 12 x x x x code should fn x 12 x x nx x fn x rest x x x x code should fn x rest x x nx x fn x rest x x x x code should fn x rest x x nx x fnx code should fnx nil fnx nil code should fnx nil fnx 1 code should fnx 1 fnx 1 1 code should fnx 1 1 fnx x x x code should fnx x x x fnx x 12 x x code should fnx x 12 x x fnx x x x x x code should fnx x x x nx x fnx x x x x x code should fnx x nil x x nx x fnx x 12 x x x x code should fnx x 12 x x nx x fnx x rest x x x x code should fnx x rest x x nx x fnx x rest x x x x code should fnx x rest x x nx x should shadow reading of outer variables when getting arguments show source x 32 fn x x call 43 should 43 x should 32 should shadow writing of outer variables when getting arguments show source x 32 fn x x 13 x call 123 should 13 x should 32 DefaultBehavior fnx should be possible to give it a documentation string show source fnx foo is bar nil documentation should foo is bar should return something that is activatable for empty list show source fnx activatable should be true should return something that is activatable for code show source fnx hello activatable should be true should return something that is activatable for code with arguments show source fnx x y x y activatable should be true DefaultBehavior freeze should be possible to call several times without effect show source x Origin mimic x freeze x freeze should not be possible to modify a frozen object show source x Origin mimic x existing 43 x freeze fn x y 42 should signal Condition Error ModifyOnFrozen fn x existing 42 should signal Condition Error ModifyOnFrozen fn x mimic Origin mimic should signal Condition Error ModifyOnFrozen fn x prependMimic Origin mimic should signal Condition Error ModifyOnFrozen fn x removeMimic Origin should signal Condition Error ModifyOnFrozen fn x removeAllMimics should signal Condition Error ModifyOnFrozen fn x documentation blarg should signal Condition Error ModifyOnFrozen fn x become 42 should signal Condition Error ModifyOnFrozen fn x removeCell existing should signal Condition Error ModifyOnFrozen fn x undefineCell existing should signal Condition Error ModifyOnFrozen should be copied when becoming show source x Origin mimic y Origin mimic x freeze y become x y should be frozen DefaultBehavior frozen should return false on something that isn t frozen show source x Origin mimic x should not be frozen x freeze x should be frozen DefaultBehavior if should evaluate it s first element once show source x 42 if x x should 43 should return it s second argument if the first element evaluates to true show source if true 42 43 should 42 should return it s third argument if the first element evaluates to false show source if false 42 43 should 43 should return the result of evaluating the first argument if there are no more arguments show source if 44 should 44 should return the result of evaluating the first argument if it is false and there are only two arguments show source if false should be false if nil should be nil should assign the test result to the variable it show source if 42 it should 42 if nil 42 it should be nil if false 42 it should be false if str 42 it should 42 should have a lexical context for the it variable show source if 42 fn it call should 42 should be possible to nest it variables lexically show source if 42 it if 13 it if nil 44 it it should 42 13 nil 13 DefaultBehavior in should call include on the argument with itself as argument show source x Origin mimic x include method arg arg 42 y Origin mimic y in x should y 42 should return true if the object is in a list show source 1 in 1 2 3 should be true should return false if the object is not in a list show source 1 in 2 3 4 should be false DefaultBehavior internal compositeRegexp should combine several strings and expects the last entry to be a regular expression show source internal compositeRegexp abc foo bar should abcfoobar should use the flags from the last regular expression show source internal compositeRegexp abc bar mx should abc bar mx should work in a literal syntax too show source internal compositeRegexp foo bar m should foo bar m DefaultBehavior internal concatenateText should combine several strings show source foobarflux should foobarflux x str foo x flux should foostrflux should combine strings with the text representation of other stuff show source foo 123 flux should foo123flux 1 2 3 foo should 1 2 3 foo DefaultBehavior internal createText should be possible to invoke from Ioke with a regular String show source internal createText foo should foo DefaultBehavior is should return false if the object doesn t mimic the argument show source f Origin mimic Origin is f should be false f Origin mimic DefaultBehavior is f should be false f Origin mimic 12 is f should be false f Origin mimic f is 12 should be false should return true if the object is the same as the argument show source f Origin mimic f is f should be true Origin is Origin should be true should return true if any of the mimics are the argument show source x Origin mimic y x mimic z y mimic z is Origin should be true x Origin mimic y x mimic z y mimic z is x should be true x Origin mimic y x mimic z y mimic z is y should be true x Origin mimic y x mimic z y mimic z is z should be true f Origin mimic Origin mimic f x Origin mimic y x mimic z y mimic z is f should be true should handle a cycle of mimics correctly show source x Origin mimic y x mimic z y mimic Origin mimic z z is Number should be false x Origin mimic y x mimic z y mimic Origin mimic z z is Origin should be true x Origin mimic y x mimic z y mimic Origin mimic z z is Base should be true x Origin mimic x mimic x x is Origin should be true DefaultBehavior kind should return false if the kind doesn t match show source Text kind nil should be false Text kind Number should be false kind nil should be false kind Number should be false kind System should be false should return true if the current object has the kind show source Text kind Text should be true should return true if the main mimic has the kind show source kind Text should be true kind DefaultBehavior should be true kind Base should be true kind Ground should be true kind Origin should be true should return true if another mimic has the kind show source 123 kind Mixins Comparing should be true should handle a cycle of mimics correctly show source f Origin mimic f mimic f f kind Origin should be true f Origin mimic Origin mimic f f kind Origin should be true f Origin mimic Origin mimic f f kind DefaultBehavior should be true should validate type of argument show source fn kind should signal Condition Error Type IncorrectType DefaultBehavior lecro should return a lecro that returns nil when called with no arguments show source lecro call should be nil lecro call should be nil should name itself after the slot it s assigned to if it has no name show source x lecro nil cell x name should x should not change it s name if it already has a name show source x lecro nil y cell x cell y name should x should know it s own name show source x lecro nil name should x should be activatable show source lecro activatable should be true DefaultBehavior lecrox should return a lecro that returns nil when called with no arguments show source lecrox call should be nil lecrox call should be nil should name itself after the slot it s assigned to if it has no name show source x lecrox nil cell x name should x should not change it s name if it already has a name show source x lecrox nil y cell x cell y name should x should know it s own name show source x lecrox nil name should x should not be activatable show source lecrox activatable should be false DefaultBehavior list should create a new empty list when given no arguments show source x list x should have kind List x should not be same List x should mimic List x list x should have kind List x should not be same List x should mimic List should create a new list with the evaluated arguments show source x list 1 2 abc 3 42 x length should 4 x 0 should 1 x 1 should 2 x 2 should abc x 3 should 45 DefaultBehavior loop should loop until interrupted by break show source x 42 loop x if x 45 break x should 45 DefaultBehavior macro should return a macro that returns nil when called with no arguments show source macro call should be nil macro call should be nil should name itself after the slot it s assigned to if it has no name show source x macro nil cell x name should x should not change it s name if it already has a name show source x macro nil y cell x cell y name should x should know it s own name show source x macro nil name should x DefaultBehavior message should return a new message show source message foo should have kind Message should take a text argument show source message foo name should foo should take a symbol argument show source message foo name should foo DefaultBehavior method should return a method that returns nil when called with no arguments show source method call should be nil method call should be nil should name itself after the slot it s assigned to if it has no name show source x method nil name should x should not change it s name if it already has a name show source x method nil y cell x cell y name should x should know it s own name show source x method nil name should x DefaultBehavior mimic should add a new mimic to the list of mimics show source f Origin mimic g Origin mimic f mimic g f mimics length should 2 f mimics 0 should Origin f mimics 1 should g should not add a mimic that s already in the list show source f Origin mimic f mimic Origin f mimic Origin f mimic Origin f mimic Origin f mimics length should 1 should not be able to mimic nil show source fn Origin mimic mimic nil should signal Condition Error CantMimicOddball should not be able to mimic true show source fn Origin mimic mimic true should signal Condition Error CantMimicOddball should not be able to mimic false show source fn Origin mimic mimic false should signal Condition Error CantMimicOddball should not be able to mimic symbols show source fn Origin mimic mimic foo should signal Condition Error CantMimicOddball should return the receiving object show source f Origin mimic f mimic Origin should f DefaultBehavior mimics should return a list with Origin for a simple mimic show source Origin mimic mimics should Origin should return a list with all mimics show source X Origin mimic Y Origin mimic Z Origin mimic y Y mimic y mimic X y mimic Z y mimics should Y X Z DefaultBehavior mimics should return false if the object doesn t mimic the argument show source f Origin mimic Origin mimics f should be false f Origin mimic DefaultBehavior mimics f should be false f Origin mimic 12 mimics f should be false f Origin mimic f mimics 12 should be false should return true if the object is the same as the argument show source f Origin mimic f mimics f should be true Origin mimics Origin should be true should return true if any of the mimics are the argument show source x Origin mimic y x mimic z y mimic z mimics Origin should be true x Origin mimic y x mimic z y mimic z mimics x should be true x Origin mimic y x mimic z y mimic z mimics y should be true x Origin mimic y x mimic z y mimic z mimics z should be true f Origin mimic Origin mimic f x Origin mimic y x mimic z y mimic z mimics f should be true should handle a cycle of mimics correctly show source x Origin mimic y x mimic z y mimic Origin mimic z z mimics Number should be false x Origin mimic y x mimic z y mimic Origin mimic z z mimics Origin should be true x Origin mimic y x mimic z y mimic Origin mimic z z mimics Base should be true x Origin mimic x mimic x x mimics Origin should be true DefaultBehavior nand should evaluate it s argument show source x 41 30 nand x 42 x should 42 should return false if the argument evaluates to true show source 30 nand 42 should be false should return true if the argument evaluates to false show source 30 nand false should be true should return true if the argument evaluates to nil show source 30 nand nil should be true should be available in infix show source 30 nand 43 should be false DefaultBehavior nil should return true for nil show source nil nil should be true should return false for false show source false nil should be false should return false for true show source true nil should be false should return false for a Number show source 123 nil should be false should return false for a Text show source flurg nil should be false DefaultBehavior nor should not evaluate it s argument show source x 41 30 nor x 42 x should 41 should return false show source 30 nor 42 should be false should be available in infix show source 30 nor 43 should be false DefaultBehavior not should return nil for a number show source 123 not should be nil should return nil for a text show source foo not should be nil DefaultBehavior or should not evaluate it s argument show source x 41 123 or x 42 x should 41 should return the receiver show source murg or 42 should murg should be available in infix show source 444 or 43 should 444 DefaultBehavior prependMimic should add a

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    foo7 method arg 42 Ground accesses x after foo7 add floxie method arg accesses method arg x after foo7 add floxie macro accesses macro call arguments 0 code x after foo7 add floxie fn arg accesses fn arg x foo7 accesses arg evaled 42 14 accesses should arg evaled method 56 macro accesses arg evaled n42 14 fn 56 should evaluate advice in inverse order show source x Origin mimic do foo8 method 42 accesses x after foo8 add floxie fn accesses one x after foo8 add floxie fn accesses two x after foo8 add floxie fn accesses three x foo8 accesses should one two three should retain the original documentation show source x Origin mimic do foo9 method Does something very interesting 42 x after foo9 add floxie fn blarg 42 x cell foo9 documentation should Does something very interesting DefaultBehavior Aspects after removing all named advice should remove all advice with the name show source x Origin mimic do foo 14 accesses x after foo add someone fn accesses one x after foo add someone fn accesses two x after foo add someone fn accesses three x after foo removeAll someone x foo should 14 accesses should should signal a condition if no such advice could be found show source x Origin mimic do foo 14 x after foo removeAll someone should not touch unnamed advice show source x Origin mimic do foo 14 accesses x after foo fn accesses one x after foo add someone fn accesses two x after foo fn accesses three x after foo removeAll someone x foo accesses should one three should not touch advice with other names show source x Origin mimic do foo 14 accesses x after foo add buck fn accesses one x after foo add someone fn accesses two x after foo add blarg fn accesses three x after foo removeAll someone x foo accesses should one three should only remove the named advice from the specific point cut show source x Origin mimic do foo 14 bar 13 accesses x after foo bar add someone lecro accesses one call message name x after foo bar add someone lecro accesses two call message name x after foo bar add someone lecro accesses three call message name x after foo removeAll someone x foo x bar accesses should one bar two bar three bar DefaultBehavior Aspects after with except keyword should take a name to not include show source X Origin mimic Y X mimic Y foo16 42 X bar16 13 y Y mimic y quux16 555 Ground accesses y after matching any except bar16 macro accesses call message name y foo16 y bar16 y quux16 accesses should foo16 quux16 should take a list of names to not include show source X Origin mimic Y X mimic Y foo17 42 X bar17 13 y Y mimic y quux17 555 Ground accesses y after matching any except bar17 quux17 macro accesses call message name y foo17 y bar17 y quux17 accesses should foo17 should take a regular expression show source X Origin mimic Y X mimic Y foo18 42 X bar18 13 y Y mimic y quux18 555 Ground accesses y after matching any except bar18 macro accesses call message name y foo18 y bar18 y quux18 accesses should foo18 quux18 should take a block show source X Origin mimic Y X mimic Y foo19 42 X bar19 13 y Y mimic y quux19 555 Ground accesses y after matching any except fn c bar19 c macro accesses call message name y foo19 y bar19 y quux19 accesses should foo19 quux19 should take a list of specifiers show source X Origin mimic Y X mimic Y foo20 42 X bar20 13 y Y mimic y quux20 555 Ground accesses y after matching any except bar20 foo20 macro accesses call message name y foo20 y bar20 y quux20 accesses should quux20 DefaultBehavior Aspects after with matching keyword should take any and add it to all existing cells for that object and mimics up to Origin show source X Origin mimic Y X mimic Y foo11 42 X bar11 13 y Y mimic Origin mucus11 777 Ground accesses y after matching any macro accesses call message name y foo11 y bar11 y mucus11 accesses should foo11 bar11 mucus11 should take anyFromSelf and add it to all existing cells for that object only show source X Origin mimic Y X mimic Y foo12 42 X bar12 13 y Y mimic y quux12 555 Ground accesses y after matching anyFromSelf macro accesses call message name y foo12 y bar12 y quux12 accesses should quux12 should take a regular expression and use that to choose which cells to handle show source X Origin mimic x X mimic X match aspect abc13 555 X mutch aspect abc13 555 X match aspect aaa13 5345 x match aspect hmm13 1111 Ground accesses x after matching match aspect macro accesses call message name x match aspect abc13 x mutch aspect abc13 x match aspect aaa13 x match aspect hmm13 accesses should match aspect abc13 match aspect aaa13 match aspect hmm13 should take a block and use that to choose which cells to handle show source X Origin mimic x X mimic X match aspect abc14 555 X mutch aspect abc14 555 X match aspect aaa14 5345 x match aspect hmm14 1111 Ground accesses x after matching fn arg match aspect arg macro accesses call message name x match aspect abc14 x mutch aspect abc14 x match aspect aaa14 x match aspect hmm14 accesses should match aspect abc14 match aspect aaa14 match aspect hmm14 should take a list of specifiers to use for matching show source X Origin mimic x X mimic X match aspect abc15 555 X mutch aspect abc15 555 X match aspect aaa15 5345 x match aspect hmm15 1111 x blarg aspect hmm15 1111 Ground accesses x after matching match aspect blarg macro accesses call message name x match aspect abc15 x mutch aspect abc15 x match aspect aaa15 x match aspect hmm15 x blarg aspect hmm15 accesses should match aspect abc15 match aspect aaa15 match aspect hmm15 blarg aspect hmm15 DefaultBehavior Aspects after with more than one cell name should add the advice to both the cells show source x Origin mimic do foo10 42 bar10 62 Ground accesses x after foo10 bar10 macro accesses call message name x foo10 x bar10 x foo10 accesses should foo10 bar10 foo10 DefaultBehavior Aspects after with one cell name should execute a block after a cell is accessed in any way show source x Origin mimic do foo1 42 accesses x after foo1 fn accesses accessed x foo1 should 42 x foo1 should 42 accesses should accessed accessed should execute a method after a cell is accessed in any way show source x Origin mimic do foo2 42 Ground accesses x after foo2 method accesses accessed x foo2 should 42 x foo2 should 42 accesses should accessed accessed should give the same arguments as was given to the original call show source x Origin mimic do foo3 method args args Ground accesses x after foo3 method args accesses method args x after foo3 fn a b args accesses fn a b args x foo3 1 2 should 1 2 x foo3 53 43 6613 4353 should 53 43 6613 4353 accesses should method 1 2 fn 1 2 method 53 43 6613 4353 fn 53 43 6613 4353 should supply a call to macros that specify the original call including name for a cell get show source x Origin mimic do foo4 42 Ground accesses x after foo4 macro accesses call message name x foo4 should 42 x foo4 should 42 accesses should foo4 foo4 should supply a call to macros that specify the original call including name for a method call show source x Origin mimic do foox method a a 42 Ground accesses x after foox macro accesses call message name x foox 32 should 74 x foox 1 should 43 accesses should foox foox should be possible to signal a condition from inside the after method show source x Origin mimic do foo5 method 42 accesses x after foo5 fn accesses one x after foo5 fn accesses two x after foo5 fn accesses three x after foo5 fn accesses four error this doesn t work x after foo5 fn accesses five x after foo5 fn accesses six fn x foo5 should signal Condition Error Default accesses should one two three four should be possible to specify for a cell that doesn t exist show source x Origin mimic accesses x after unexisting aspect after cell fn accesses wow bind rescue Condition Error NoSuchCell fn c nil x unexisting aspect after cell accesses should should still raise a nosuchcell after the after advice have run for a non existing cell show source x Origin mimic x after unexisting aspect after cell fn nil fn x unexisting aspect after cell should signal Condition Error NoSuchCell should set the self of a method to the same self as the receiver show source x Origin mimic do foo6 method 42 Ground accesses x after foo6 method accesses self x after foo6 macro accesses self x foo6 accesses 0 should be same x accesses 1 should be same x should only evaluate arguments once show source x Origin mimic do foo7 method arg 42 Ground accesses x after foo7 method arg accesses method arg x after foo7 macro accesses macro call arguments 0 code x after foo7 fn arg accesses fn arg x foo7 accesses arg evaled 42 14 accesses should arg evaled method 56 macro accesses arg evaled n42 14 fn 56 should evaluate advice in inverse order show source x Origin mimic do foo8 method 42 accesses x after foo8 fn accesses one x after foo8 fn accesses two x after foo8 fn accesses three x foo8 accesses should one two three should retain the original documentation show source x Origin mimic do foo9 method Does something very interesting 42 x after foo9 fn blarg 42 x cell foo9 documentation should Does something very interesting around matching nil except nil joinPoints nil show source method matching nil except nil joinPoints Pointcut with receiver self joinPoints joinPoints matching cell matching except except type around DefaultBehavior Aspects around should return an Aspect Pointcut show source Origin mimic around foo should have kind DefaultBehavior Aspects Pointcut should execute a block instead of a cell access show source x Origin mimic do foo 42 accesses x around foo fn accesses called x foo x foo accesses should called called should execute a method instead of a cell access show source x Origin mimic do foo 42 Ground accesses x around foo method accesses called x foo x foo accesses should called called should execute a method instead of a cell access with the current receiver show source x Origin mimic do foo 42 Ground accesses x around foo method accesses self x foo x foo accesses 0 should be same x accesses 1 should be same x should be possible to define an around advice for a non existing cell show source x Origin mimic accesses x around foo fn accesses called x foo x foo accesses should called called should signal a nosuchcell exception for a non existing cell after invoking the around advice show source x Origin mimic accesses x around method to test advice around non existing cell fn accesses called aspectCall fn x method to test advice around non existing cell should signal Condition Error NoSuchCell accesses should called should be possible to invoke the next value show source Ground accesses x Origin mimic do foo method val accesses realMethodInvoked val 18 x around foo method var accesses aroundBefore var xx aspectCall 42 accesses aroundAfter xx 39 x foo 500 should 39 accesses should aroundBefore 500 realMethodInvoked 42 aroundAfter 18 should be possible to invoke the next value several times show source Ground accesses x Origin mimic do foo method val accesses realMethodInvoked val 18 x around foo method var accesses aroundBefore var xx aspectCall 42 accesses aroundAfter xx aspectCall 43 aspectCall 44 aspectCall 45 39 x foo 500 should 39 accesses should aroundBefore 500 realMethodInvoked 42 aroundAfter 18 realMethodInvoked 43 realMethodInvoked 44 realMethodInvoked 45 should return the value of the around advice show source x Origin mimic x around foo fn 4100 x foo should 4100 should be possible to add a named around advice show source x Origin mimic x around foo add something fn 4100 x foo should 4100 should be possible to remove a named around advice show source x Origin mimic do foo 42 x around foo add something fn 4100 x around foo remove something x foo should 42 before matching nil except nil joinPoints nil show source method matching nil except nil joinPoints Pointcut with receiver self joinPoints joinPoints matching cell matching except except type before DefaultBehavior Aspects before should return an Aspect Pointcut show source Origin mimic before foo should have kind DefaultBehavior Aspects Pointcut DefaultBehavior Aspects before adding named advice DefaultBehavior Aspects before adding named advice with except keyword should take a name to not include show source X Origin mimic Y X mimic Y foo16 42 X bar16 13 y Y mimic y quux16 555 Ground accesses y before matching any except bar16 add floxie macro accesses call message name y foo16 y bar16 y quux16 accesses should foo16 quux16 should take a list of names to not include show source X Origin mimic Y X mimic Y foo17 42 X bar17 13 y Y mimic y quux17 555 Ground accesses y before matching any except bar17 quux17 add floxie macro accesses call message name y foo17 y bar17 y quux17 accesses should foo17 should take a regular expression show source X Origin mimic Y X mimic Y foo18 42 X bar18 13 y Y mimic y quux18 555 Ground accesses y before matching any except bar18 add floxie macro accesses call message name y foo18 y bar18 y quux18 accesses should foo18 quux18 should take a block show source X Origin mimic Y X mimic Y foo19 42 X bar19 13 y Y mimic y quux19 555 Ground accesses y before matching any except fn c bar19 c add floxie macro accesses call message name y foo19 y bar19 y quux19 accesses should foo19 quux19 should take a list of specifiers show source X Origin mimic Y X mimic Y foo20 42 X bar20 13 y Y mimic y quux20 555 Ground accesses y before matching any except bar20 foo20 add floxie macro accesses call message name y foo20 y bar20 y quux20 accesses should quux20 DefaultBehavior Aspects before adding named advice with matching keyword should take any and add it to all existing cells for that object and mimics up to Origin show source X Origin mimic Y X mimic Y foo11 42 X bar11 13 y Y mimic Origin mucus11 777 Ground accesses y before matching any add floxie macro accesses call message name y foo11 y bar11 y mucus11 accesses should foo11 bar11 mucus11 should take anyFromSelf and add it to all existing cells for that object only show source X Origin mimic Y X mimic Y foo12 42 X bar12 13 y Y mimic y quux12 555 Ground accesses y before matching anyFromSelf add floxie macro accesses call message name y foo12 y bar12 y quux12 accesses should quux12 should take a regular expression and use that to choose which cells to handle show source X Origin mimic x X mimic X match aspect abc13 555 X mutch aspect abc13 555 X match aspect aaa13 5345 x match aspect hmm13 1111 Ground accesses x before matching match aspect add floxie macro accesses call message name x match aspect abc13 x mutch aspect abc13 x match aspect aaa13 x match aspect hmm13 accesses should match aspect abc13 match aspect aaa13 match aspect hmm13 should take a block and use that to choose which cells to handle show source X Origin mimic x X mimic X match aspect abc14 555 X mutch aspect abc14 555 X match aspect aaa14 5345 x match aspect hmm14 1111 Ground accesses x before matching fn arg match aspect arg add floxie macro accesses call message name x match aspect abc14 x mutch aspect abc14 x match aspect aaa14 x match aspect hmm14 accesses should match aspect abc14 match aspect aaa14 match aspect hmm14 should take a list of specifiers to use for matching show source X Origin mimic x X mimic X match aspect abc15 555 X mutch aspect abc15 555 X match aspect aaa15 5345 x match aspect hmm15 1111 x blarg aspect hmm15 1111 Ground accesses x before matching match aspect blarg add floxie macro accesses call message name x match aspect abc15 x mutch aspect abc15 x match aspect aaa15 x match aspect hmm15 x blarg aspect hmm15 accesses should match aspect abc15 match aspect aaa15 match aspect hmm15 blarg aspect hmm15 DefaultBehavior Aspects before adding named advice with more than one cell name should add the advice to both the cells show source x Origin mimic do foo10 42 bar10 62 Ground accesses x before foo10 bar10 add floxie macro accesses call message name x foo10 x bar10 x foo10 accesses should foo10 bar10 foo10 DefaultBehavior Aspects before adding named advice with one cell name should execute a block before a cell is accessed in any way show source x Origin mimic do foo1 42 accesses x before foo1 add floxie fn accesses accessed x foo1 should 42 x foo1 should 42 accesses should accessed accessed should execute a method before a cell is accessed in any way show source x Origin mimic do foo2 42 Ground accesses x before foo2 add floxie method accesses accessed x foo2 should 42 x foo2 should 42 accesses should accessed accessed should give the same arguments as was given to the original call show source x Origin mimic do foo3

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior/Aspects.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    call activateValue cell advice aspectResult result result macro result call resendToValue cell primary call activateValue cell advice aspectResult result result around theMacro if cacheCall cell advice if cacheCall cell primary macro aspectCall macro ss if kind Locals self call activateValueWithCachedArguments cell primary ss cell aspectCall primary cell primary call activateValueWithCachedArguments cell advice self aspectCall cell aspectCall macro aspectCall macro ss if kind Locals self call resendToValue cell primary ss cell aspectCall primary cell primary call activateValueWithCachedArguments cell advice self aspectCall cell aspectCall if cacheCall cell primary macro aspectCall macro ss if kind Locals self call activateValueWithCachedArguments cell primary ss cell aspectCall primary cell primary call activateValue cell advice self aspectCall cell aspectCall macro aspectCall macro ss if kind Locals self call resendToValue cell primary ss cell aspectCall primary cell primary call activateValue cell advice self aspectCall cell aspectCall cell theMacro pointcut self cell theMacro advice cell advice cell theMacro primary cell primary cell theMacro documentation cell primary documentation if adviceName cell theMacro adviceName adviceName if advice cell primary cell primary outerAdvice cell theMacro self cell receiver cell cellName cell theMacro addToJoins matches joins nil show source method matches joins case cell matches any self cell receiver cellNames true Origin each cn joins cn anyFromSelf self cell receiver cellNames false each cn joins cn or Regexp LexicalBlock self cell receiver cellNames true Origin grep cell matches cn joins cn List matches each m addToJoins m joins advice obj nil show source method obj cell obj cell kind cell obj kind DefaultMacro cell obj cell advice cacheCall obj nil show source method obj case cell obj kind DefaultMethod true LexicalBlock true LexicalMacro true DefaultMacro true DefaultSyntax true JavaMethod true false remove name nil show source method name joins set joinPoints addToJoins self cell matching joins removeFromJoins self cell except joins joins remove

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior/Aspects/Pointcut.html (2016-02-13)
    Open archived version from archive



  •