cn.wensiqun.asmsupport.utils
类 Stack

java.lang.Object
  继承者 cn.wensiqun.asmsupport.utils.Stack
所有已实现的接口:
Printable, Cloneable

public class Stack
extends Object
implements Printable, Cloneable

作者:
温斯群(Joe Wen)

构造方法摘要
Stack()
           
 
方法摘要
 Object clone()
           
 String[][] generateGridArray()
           
 int getMaxSize()
           
 int getSize()
           
 void insert(int pos, Stackable item)
           
 void insert(int i, org.objectweb.asm.Type item)
           
 Stackable peek()
          Returns the top item off of this stack without removing it.
 Stackable peek(int n)
          Returns the n'th item down (zero-relative) from the top of this stack without removing it.
 Stackable pop()
           
 void pop(int times)
           
 void printState()
           
 void push(Stackable item)
           
 void push(org.objectweb.asm.Type... items)
           
 void push(org.objectweb.asm.Type item)
           
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Stack

public Stack()
方法详细信息

clone

public Object clone()
覆盖:
Object 中的 clone

peek

public Stackable peek()
               throws EmptyStackException
Returns the top item off of this stack without removing it.

返回:
the top item on the stack
抛出:
EmptyStackException - if the stack is empty

peek

public Stackable peek(int n)
               throws EmptyStackException
Returns the n'th item down (zero-relative) from the top of this stack without removing it.

参数:
n - the number of items down to go
返回:
the n'th item on the stack, zero relative
抛出:
EmptyStackException - if there are not enough items on the stack to satisfy this request

pop

public Stackable pop()
              throws EmptyStackException
抛出:
EmptyStackException

pop

public void pop(int times)
         throws EmptyStackException
抛出:
EmptyStackException

push

public void push(Stackable item)

push

public void push(org.objectweb.asm.Type item)

push

public void push(org.objectweb.asm.Type... items)

insert

public void insert(int pos,
                   Stackable item)

insert

public void insert(int i,
                   org.objectweb.asm.Type item)

getSize

public int getSize()

getMaxSize

public int getMaxSize()

printState

public void printState()
指定者:
接口 Printable 中的 printState

generateGridArray

public String[][] generateGridArray()
指定者:
接口 Printable 中的 generateGridArray


Copyright © 2013. All Rights Reserved.