| 构造器和说明 |
|---|
Stack() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
clone() |
String[][] |
generateGridArray()
Generate a string array corresponding to diagram
|
int |
getMaxSize() |
int |
getSize() |
void |
insert(int pos,
StackableType item) |
void |
insert(int i,
cn.wensiqun.asmsupport.org.objectweb.asm.Type item) |
StackableType |
peek()
Returns the top item off of this stack without removing it.
|
StackableType |
peek(int n)
Returns the n'th item down (zero-relative) from the top of this stack
without removing it.
|
StackableType |
pop() |
void |
pop(int times) |
void |
printState()
Print the diagram.
|
void |
push(StackableType item) |
void |
push(cn.wensiqun.asmsupport.org.objectweb.asm.Type... items) |
void |
push(cn.wensiqun.asmsupport.org.objectweb.asm.Type item) |
public StackableType peek() throws EmptyStackException
EmptyStackException - if the stack is emptypublic StackableType peek(int n) throws EmptyStackException
n - the number of items down to goEmptyStackException - if there are not enough items on the stack to satisfy this
requestpublic StackableType pop() throws EmptyStackException
public void pop(int times)
throws EmptyStackException
public void push(StackableType item)
public void push(cn.wensiqun.asmsupport.org.objectweb.asm.Type item)
public void push(cn.wensiqun.asmsupport.org.objectweb.asm.Type... items)
public void insert(int pos,
StackableType item)
public void insert(int i,
cn.wensiqun.asmsupport.org.objectweb.asm.Type item)
public int getSize()
public int getMaxSize()
public void printState()
PrintableprintState 在接口中 Printablepublic String[][] generateGridArray()
PrintablegenerateGridArray 在接口中 PrintableCopyright © 2015. All rights reserved.