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, surroundingContext
public LocalContext(Context surrounding)
surrounding
- the surrounding context.public int offset()
public int nextOffset()
public void writeToStdOut(PrettyPrinter p)
Context
writeToStdOut
in class Context
p
- for pretty printing with indentation.