|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.dynamicjava.interpreter.DelegatingContext
edu.rice.cs.dynamicjava.interpreter.InitializerContext
public class InitializerContext
The body of an initializer.
| Constructor Summary | |
|---|---|
InitializerContext(TypeContext next,
boolean isStatic,
DJClass c)
|
|
| Method Summary | |
|---|---|
protected InitializerContext |
duplicate(TypeContext next)
Create a copy of this context with the given context enclosing it. |
java.lang.Iterable<Type> |
getDeclaredThrownTypes()
The types that are allowed to be thrown in the current context. |
Type |
getReturnType()
The expected type of a return statement in the given context, or null
if return statements should not appear here. |
DJClass |
getThis()
Return the class of this in the current context, or null
if there is no such value (for example, in a static context). |
DJClass |
getThis(java.lang.String className)
Return the class of className.this in the current context, or null
if there is no such value (for example, in a static context). |
DJClass |
getThis(Type expected,
TypeSystem ts)
Return the innermost "this" class with the given type in the current context, or null if there is no such value (for example, in a static context). |
DJClass |
initializingClass()
Class which is being initialized (via a constructor or initialization block); null otherwise. |
java.lang.String |
makeClassName(java.lang.String n)
Return a full name for a class with the given name declared here. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InitializerContext(TypeContext next,
boolean isStatic,
DJClass c)
| Method Detail |
|---|
protected InitializerContext duplicate(TypeContext next)
DelegatingContext
duplicate in class DelegatingContextpublic java.lang.String makeClassName(java.lang.String n)
DelegatingContext
makeClassName in interface TypeContextmakeClassName in class DelegatingContextpublic DJClass getThis()
DelegatingContextthis in the current context, or null
if there is no such value (for example, in a static context).
getThis in interface TypeContextgetThis in class DelegatingContextpublic DJClass getThis(java.lang.String className)
DelegatingContextclassName.this in the current context, or null
if there is no such value (for example, in a static context).
getThis in interface TypeContextgetThis in class DelegatingContext
public DJClass getThis(Type expected,
TypeSystem ts)
TypeContextnull if there is no such value (for example, in a static context).
getThis in interface TypeContextgetThis in class DelegatingContextpublic DJClass initializingClass()
TypeContextnull otherwise.
initializingClass in interface TypeContextinitializingClass in class DelegatingContextpublic Type getReturnType()
DelegatingContextreturn statement in the given context, or null
if return statements should not appear here.
getReturnType in interface TypeContextgetReturnType in class DelegatingContextpublic java.lang.Iterable<Type> getDeclaredThrownTypes()
DelegatingContext
getDeclaredThrownTypes in interface TypeContextgetDeclaredThrownTypes in class DelegatingContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||