Class ImportStack


  • public class ImportStack
    extends java.lang.Object
    Stack for tracking currently evaluated file.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportStack()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Import peek()
      Return the current import.
      void pop()
      Pop an import from the stack.
      void push​(int id)
      Push an import to the stack by its ID.
      int register​(Import importSource)
      Register a new import, return the registration ID.
      • Methods inherited from class java.lang.Object

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

      • ImportStack

        public ImportStack()
    • Method Detail

      • register

        public int register​(Import importSource)
        Register a new import, return the registration ID.
      • push

        public void push​(int id)
        Push an import to the stack by its ID.
      • pop

        public void pop()
        Pop an import from the stack.
      • peek

        public Import peek()
        Return the current import.