Guest User

Untitled

a guest
Jun 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. package metaobjectTest
  2.  
  3. @doc{*
  4. callUnaryMethods generates code that calls all methods of
  5. the current prototype whose name matches with the pattern
  6. that is the annotation parameter.
  7. *}
  8. object CallUnaryMethods
  9.  
  10. func run {
  11.  
  12. @callUnaryMethods(".*Test")
  13. assert count == 3;
  14. }
  15.  
  16. func oneTest { ++count }
  17. func twoTest { ++count }
  18. func threeTest { ++count }
  19.  
  20. var Int count = 0;
  21.  
  22. end
Add Comment
Please, Sign In to add comment