Package org.jboss.classfilewriter.code
Class StackEntry
- java.lang.Object
-
- 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
Constructors Constructor Description StackEntry(StackEntryType type, String descriptor)StackEntry(StackEntryType type, String descriptor, int newInstructionLocation)StackEntry(StackEntryType type, String descriptor, ConstPool pool)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescriptor()intgetNewInstructionLocation()StackEntryTypegetType()booleanisWide()static StackEntryof(String descriptor, ConstPool pool)StringtoString()voidwrite(DataOutputStream dstream)writes the entry to the stream
-
-
-
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()
-
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
-
-