java.lang.Object
io.bit3.jsass.context.ImportStack
public class ImportStack
extends java.lang.Object
Stack for tracking currently evaluated file.
-
-
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
-
-
Method Details
-
public int register(
Import importSource)
Register a new import, return the registration ID.
-
public void push(int id)
Push an import to the stack by its ID.
-
public void pop()
Pop an import from the stack.
-
Return the current import.