|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.byteman.rule.compiler.StackHeights
public class StackHeights
container to track either the current or the maximum local variable count and stack height while generating compiled code for a rule
Field Summary | |
---|---|
int |
localCount
number of local variable slots |
int |
stackCount
number of stack slots |
Constructor Summary | |
---|---|
StackHeights()
create withinitial counts 0 |
|
StackHeights(StackHeights toCopy)
create a copy with the same coutns as the original |
Method Summary | |
---|---|
StackHeights |
addLocalCount(int increment)
increment the local count and return this to allow chaining |
StackHeights |
addStackCount(int increment)
increment the stack count and return this to allow chaining |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int stackCount
public int localCount
Constructor Detail |
---|
public StackHeights()
public StackHeights(StackHeights toCopy)
toCopy
- Method Detail |
---|
public StackHeights addStackCount(int increment) throws CompileException
increment
- the amount ot add to stackCount (can be negative)
CompileException
- if the stack count goes negativepublic StackHeights addLocalCount(int increment) throws CompileException
increment
- the amount ot add to localCount (can be negative)
CompileException
- if the local count goes negative
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |