public abstract class AbstractFramedScope extends AbstractScope implements FramedScope
| Modifier and Type | Field and Description |
|---|---|
protected int |
pointers |
framedScope, parentScope, statements, variableslocation| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFramedScope(Location location) |
protected |
AbstractFramedScope(@Nullable Scope parent,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
int |
allocate()
Allocate variable in the frame and get assigned pointer
|
FramedScope |
getFramedScope()
Get parent frame
|
int |
getRequiredMemorySize()
Get required memory size by
Frame |
addStatement, addVariable, createVariable, getParentScope, getStatements, getVariable, getVariables, hasEffective, removeVariablegetSourceLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStatement, addVariable, createVariable, getParentScope, getStandardizedFramedScope, getStatements, getVariable, getVariables, hasEffective, removeVariablegetSourceLocationprotected AbstractFramedScope(@Nullable
@Nullable Scope parent,
Location location)
protected AbstractFramedScope(Location location)
public int allocate()
FramedScopeallocate in interface FramedScopepublic int getRequiredMemorySize()
FramedScopeFramegetRequiredMemorySize in interface FramedScopepublic FramedScope getFramedScope()
ScopegetFramedScope in interface ScopegetFramedScope in class AbstractScopeCopyright © 2020. All rights reserved.