public class StackHeights extends Object
Modifier and Type | Field and Description |
---|---|
int |
localCount
number of local variable slots
|
int |
stackCount
number of stack slots
|
Constructor and Description |
---|
StackHeights()
create withinitial counts 0
|
StackHeights(StackHeights toCopy)
create a copy with the same counts as the original
|
Modifier and Type | Method and Description |
---|---|
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
|
public int stackCount
public int localCount
public StackHeights()
public StackHeights(StackHeights toCopy)
toCopy
- the StackHeights instance to copypublic 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 negativeCopyright © 2017. All rights reserved.