Constructor and Description |
---|
CMLModuleStack() |
Modifier and Type | Method and Description |
---|---|
ICMLModule |
current()
Returns the last added entry.
|
boolean |
endsWith(ICMLModule lastElement)
Convenience method to check the last added elements.
|
boolean |
endsWith(ICMLModule oneButLast,
ICMLModule lastElement)
Convenience method to check the last two added elements.
|
boolean |
endsWith(ICMLModule twoButLast,
ICMLModule oneButLast,
ICMLModule lastElement)
Convenience method to check the last three added elements.
|
int |
length() |
ICMLModule |
pop()
Retrieves and deletes to last added entry.
|
void |
push(ICMLModule item)
Adds an entry to the stack.
|
String |
toString()
Returns a String representation of the stack.
|
public void push(ICMLModule item)
public int length()
public ICMLModule pop()
current()
public ICMLModule current()
pop()
public String toString()
public boolean endsWith(ICMLModule lastElement)
public boolean endsWith(ICMLModule oneButLast, ICMLModule lastElement)
public boolean endsWith(ICMLModule twoButLast, ICMLModule oneButLast, ICMLModule lastElement)
Copyright © 2018. All Rights Reserved.