class LocalContext extends Context
| Modifier and Type | Field and Description |
|---|---|
protected int |
offset
Next offset for a local variable.
|
classContext, compilationUnitContext, entries, surroundingContext| Constructor and Description |
|---|
LocalContext(Context surrounding)
Construct a local context.
|
| Modifier and Type | Method and Description |
|---|---|
int |
nextOffset()
Allocate a new offset (eg for a parameter or local variable).
|
int |
offset()
The "next" offset.
|
void |
writeToStdOut(PrettyPrinter p)
Write the contents of this context to STDOUT.
|
addEntry, addType, classContext, compilationUnitContext, definingType, lookup, lookupType, methodContext, names, surroundingContextpublic LocalContext(Context surrounding)
surrounding - the surrounding context.public int offset()
public int nextOffset()
public void writeToStdOut(PrettyPrinter p)
ContextwriteToStdOut in class Contextp - for pretty printing with indentation.