Class Injector


  • public class Injector
    extends java.lang.Object
    Author:
    hakonhall
    • Constructor Summary

      Constructors 
      Constructor Description
      Injector()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void inject​(Inspector inspector, Inserter inserter)
      Inject a slime sub-structure described by an Inspector into a slime structure where the insertion point is described by an Inserter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Injector

        public Injector()
    • Method Detail

      • inject

        public void inject​(Inspector inspector,
                           Inserter inserter)
        Inject a slime sub-structure described by an Inspector into a slime structure where the insertion point is described by an Inserter. This will copy all the values represented by the Inspector into the position described by the Inserter. Note that this can be used to either copy data from one Slime structure to another, or to copy data internally within a single slime structure. If the Inspector contains the insertion point it will only be expanded once to avoid infinite recursion.
        Parameters:
        inspector - what to inject
        inserter - where to inject