classfilewriter 1.0.0.Final

org.jboss.classfilewriter.code
Class StackEntry

java.lang.Object
  extended by org.jboss.classfilewriter.code.StackEntry

public class StackEntry
extends Object

represents the state of the stack or the local variable array.

This is written out as part of the StackMap attribute

Author:
Stuart Douglas

Constructor Summary
StackEntry(StackEntryType type, String descriptor)
           
StackEntry(StackEntryType type, String descriptor, ConstPool pool)
           
StackEntry(StackEntryType type, String descriptor, int newInstructionLocation)
           
 
Method Summary
 String getDescriptor()
           
 int getNewInstructionLocation()
           
 StackEntryType getType()
           
 boolean isWide()
           
static StackEntry of(String descriptor, ConstPool pool)
           
 String toString()
           
 void write(DataOutputStream dstream)
          writes the entry to the stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StackEntry

public StackEntry(StackEntryType type,
                  String descriptor)

StackEntry

public StackEntry(StackEntryType type,
                  String descriptor,
                  ConstPool pool)

StackEntry

public StackEntry(StackEntryType type,
                  String descriptor,
                  int newInstructionLocation)
Method Detail

getDescriptor

public String getDescriptor()

getNewInstructionLocation

public int getNewInstructionLocation()

getType

public StackEntryType getType()

toString

public String toString()
Overrides:
toString in class Object

of

public static StackEntry of(String descriptor,
                            ConstPool pool)

isWide

public boolean isWide()

write

public void write(DataOutputStream dstream)
           throws IOException
writes the entry to the stream

Throws:
IOException

classfilewriter 1.0.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.