Class OperandManager
- java.lang.Object
-
- org.apache.commons.compress.harmony.unpack200.bytecode.OperandManager
-
public class OperandManager extends java.lang.Object
This class keeps track of operands used. It provides API to let other classes get next elements, and also knows about which classes have been used recently in super, this and new references.
-
-
Constructor Summary
Constructors Constructor Description OperandManager(int[] bcCaseCount, int[] bcCaseValue, int[] bcByte, int[] bcShort, int[] bcLocal, int[] bcLabel, int[] bcIntRef, int[] bcFloatRef, int[] bcLongRef, int[] bcDoubleRef, int[] bcStringRef, int[] bcClassRef, int[] bcFieldRef, int[] bcMethodRef, int[] bcIMethodRef, int[] bcThisField, int[] bcSuperField, int[] bcThisMethod, int[] bcSuperMethod, int[] bcInitRef, int[] wideByteCodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCurrentClass()
java.lang.String
getNewClass()
java.lang.String
getSuperClass()
SegmentConstantPool
globalConstantPool()
int
nextByte()
int
nextCaseCount()
int
nextCaseValues()
int
nextClassRef()
int
nextDoubleRef()
int
nextFieldRef()
int
nextFloatRef()
int
nextIMethodRef()
int
nextInitRef()
int
nextIntRef()
int
nextLabel()
int
nextLocal()
int
nextLongRef()
int
nextMethodRef()
int
nextShort()
int
nextStringRef()
int
nextSuperFieldRef()
int
nextSuperMethodRef()
int
nextThisFieldRef()
int
nextThisMethodRef()
int
nextWideByteCode()
void
setCurrentClass(java.lang.String string)
void
setNewClass(java.lang.String string)
void
setSegment(Segment segment)
void
setSuperClass(java.lang.String string)
-
-
-
Constructor Detail
-
OperandManager
public OperandManager(int[] bcCaseCount, int[] bcCaseValue, int[] bcByte, int[] bcShort, int[] bcLocal, int[] bcLabel, int[] bcIntRef, int[] bcFloatRef, int[] bcLongRef, int[] bcDoubleRef, int[] bcStringRef, int[] bcClassRef, int[] bcFieldRef, int[] bcMethodRef, int[] bcIMethodRef, int[] bcThisField, int[] bcSuperField, int[] bcThisMethod, int[] bcSuperMethod, int[] bcInitRef, int[] wideByteCodes)
-
-
Method Detail
-
nextCaseCount
public int nextCaseCount()
-
nextCaseValues
public int nextCaseValues()
-
nextByte
public int nextByte()
-
nextShort
public int nextShort()
-
nextLocal
public int nextLocal()
-
nextLabel
public int nextLabel()
-
nextIntRef
public int nextIntRef()
-
nextFloatRef
public int nextFloatRef()
-
nextLongRef
public int nextLongRef()
-
nextDoubleRef
public int nextDoubleRef()
-
nextStringRef
public int nextStringRef()
-
nextClassRef
public int nextClassRef()
-
nextFieldRef
public int nextFieldRef()
-
nextMethodRef
public int nextMethodRef()
-
nextIMethodRef
public int nextIMethodRef()
-
nextThisFieldRef
public int nextThisFieldRef()
-
nextSuperFieldRef
public int nextSuperFieldRef()
-
nextThisMethodRef
public int nextThisMethodRef()
-
nextSuperMethodRef
public int nextSuperMethodRef()
-
nextInitRef
public int nextInitRef()
-
nextWideByteCode
public int nextWideByteCode()
-
setSegment
public void setSegment(Segment segment)
-
globalConstantPool
public SegmentConstantPool globalConstantPool()
-
setCurrentClass
public void setCurrentClass(java.lang.String string)
-
setSuperClass
public void setSuperClass(java.lang.String string)
-
setNewClass
public void setNewClass(java.lang.String string)
-
getCurrentClass
public java.lang.String getCurrentClass()
-
getSuperClass
public java.lang.String getSuperClass()
-
getNewClass
public java.lang.String getNewClass()
-
-