Interface Inside

  • All Known Implementing Classes:
    InsAttribute, InsMethod

    public interface Inside
    Inside is what object "method" consists of in terms of inlining optimizations. There are 3 parts: object (name) itself, item - object method or attribute that is used, replacement - component that should replace item after optimization Consider the next example:
     [d] > a
       cage d > this-d
       [] > foo
         this-d.plus 1 > @
     
    The target is "method" foo and its "inside" is: object "a", item is object "this-d", the replacement will be "this-a-d". After inlining object "a" into "b" the code will look like:
     [a-d] > b
       cage a-d > this-a-d
       [] > this-a-foo
         this-a-d.plus 1 > @
       [] > bar
         this-a-foo.plus 2 > @
     
    Since:
    0.0.1
    • Method Detail

      • object

        String object()
        Object part of the inside.
        Returns:
        Name of the object.
      • item

        String item()
        Item part of the inside.
        Returns:
        Name of the item (function/attribute)
      • replacement

        String replacement()
        Replacement part of the inside.
        Returns:
        String to put in the result inside.