class MethodContext extends LocalContext
offset
classContext, compilationUnitContext, entries, surroundingContext
Constructor and Description |
---|
MethodContext(Context surrounding,
boolean isStatic,
Type methodReturnType)
Construct a method context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isStatic()
Is this method static?
|
Type |
methodReturnType()
Return the return type of this method.
|
void |
writeToStdOut(PrettyPrinter p)
Write the contents of this context to STDOUT.
|
nextOffset, offset
addEntry, addType, classContext, compilationUnitContext, definingType, lookup, lookupType, methodContext, names, surroundingContext
public boolean isStatic()
public Type methodReturnType()
public void writeToStdOut(PrettyPrinter p)
Context
writeToStdOut
in class LocalContext
p
- for pretty printing with indentation.