Class ImportStack

java.lang.Object
io.bit3.jsass.context.ImportStack

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

    Constructors 
    Constructor Description
    ImportStack()  
  • Method Summary

    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 Details

  • Method Details

    • 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.