public abstract class AbstractFrame<T extends FramedScope> extends Object implements Frame
| Modifier and Type | Field and Description |
|---|---|
protected T |
framedScope |
protected Object[] |
localMemory |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFrame(T framedScope) |
protected |
AbstractFrame(T framedScope,
int memorySize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIndex(int index) |
<R> R |
get(int pointer)
Get value at the given position
|
T |
getFramedScope()
Get associated scope with the frame
|
int |
getMemorySize() |
<R> R |
set(int pointer,
R value)
Put value in scope memory
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait__panda__to_frameprotected final T extends FramedScope framedScope
protected final Object[] localMemory
protected AbstractFrame(T framedScope, int memorySize)
protected AbstractFrame(T framedScope)
protected void checkIndex(int index)
public <R> R set(int pointer,
@Nullable
R value)
MemoryContainerset in interface MemoryContainerpointer - index of the variable in current scopevalue - new value@Nullable public <R> R get(int pointer)
MemoryContainerget in interface MemoryContainerpointer - index of variable in current scopepublic int getMemorySize()
getMemorySize in interface MemoryContainerpublic T getFramedScope()
FramegetFramedScope in interface FrameCopyright © 2020. All rights reserved.