Package org.jboss.classfilewriter.code
Class LocalVariableState
- java.lang.Object
-
- org.jboss.classfilewriter.code.LocalVariableState
-
public class LocalVariableState extends java.lang.Object
In immutable local variable state
-
-
Field Summary
Fields Modifier and Type Field Description private ConstPool
constPool
private java.util.List<StackEntry>
contents
The contents, null is used to represent the additional spot taken up by a wide variable.
-
Constructor Summary
Constructors Modifier Constructor Description private
LocalVariableState(java.util.List<StackEntry> contents, ConstPool constPool)
LocalVariableState(ClassMethod method)
construct the initial local variable state for a methodLocalVariableState(ConstPool pool, java.lang.String... entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalVariableState
constructorCall(StackEntry entry)
StackEntry
get(int index)
java.util.List<StackEntry>
getContents()
int
size()
LocalVariableState
store(int index, StackEntry entry)
LocalVariableState
storeWide(int index, StackEntry entry)
java.lang.String
toString()
-
-
-
Field Detail
-
contents
private final java.util.List<StackEntry> contents
The contents, null is used to represent the additional spot taken up by a wide variable.This list may be shared between frames, so it must never be modified
The very first element represents the first local variable (this for non static methods)
-
constPool
private final ConstPool constPool
-
-
Constructor Detail
-
LocalVariableState
public LocalVariableState(ClassMethod method)
construct the initial local variable state for a method
-
LocalVariableState
public LocalVariableState(ConstPool pool, java.lang.String... entries)
-
LocalVariableState
private LocalVariableState(java.util.List<StackEntry> contents, ConstPool constPool)
-
-
Method Detail
-
getContents
public java.util.List<StackEntry> getContents()
-
get
public StackEntry get(int index)
-
storeWide
public LocalVariableState storeWide(int index, StackEntry entry)
-
store
public LocalVariableState store(int index, StackEntry entry)
-
size
public int size()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
constructorCall
public LocalVariableState constructorCall(StackEntry entry)
-
-