|
||||||||||
| 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.ClassSignatureContext
public class ClassSignatureContext
The context of a class declaration's signature, which includes its type variables and own name but excludes its members.
| Constructor Summary | |
|---|---|
ClassSignatureContext(TypeContext next,
DJClass c,
ClassLoader loader)
|
|
| Method Summary | |
|---|---|
Access.Module |
accessModule()
Get the current access module. |
protected ClassSignatureContext |
duplicate(TypeContext next)
Create a copy of this context with the given context enclosing it. |
ClassLoader |
getClassLoader()
Return the class loader for the current scope. |
DJClass |
getTopLevelClass(String name,
TypeSystem ts)
Return the top-level class with the given name, or null if it does not exist. |
VariableType |
getTypeVariable(String name,
TypeSystem ts)
Return the type variable with the given name, or null if it does not exist. |
boolean |
memberClassExists(String name,
TypeSystem ts)
Test whether name is an in-scope member class |
boolean |
topLevelClassExists(String name,
TypeSystem ts)
Test whether name is an in-scope top-level class |
ClassType |
typeContainingMemberClass(String name,
TypeSystem ts)
Return the most inner type containing a class with the given name, or null
if there is no such type. |
boolean |
typeExists(String name,
TypeSystem ts)
Test whether name is an in-scope top-level class, member class, or type variable |
boolean |
typeVariableExists(String name,
TypeSystem ts)
Test whether name is an in-scope type variable. |
| Methods inherited from class edu.rice.cs.dynamicjava.interpreter.DelegatingContext |
|---|
fieldExists, functionExists, getDeclaredThrownTypes, getLocalFunctions, getLocalFunctions, getLocalVariable, getReturnType, getThis, getThis, getThis, importField, importMemberClass, importMemberClasses, importMethod, importStaticMembers, importTopLevelClass, importTopLevelClasses, initializingClass, localFunctionExists, localVariableExists, makeAnonymousClassName, makeClassName, methodExists, setPackage, typeContainingField, typeContainingMethod, variableExists |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassSignatureContext(TypeContext next,
DJClass c,
ClassLoader loader)
| Method Detail |
|---|
protected ClassSignatureContext duplicate(TypeContext next)
DelegatingContext
duplicate in class DelegatingContext
public boolean typeExists(String name,
TypeSystem ts)
name is an in-scope top-level class, member class, or type variable
typeExists in interface TypeContexttypeExists in class DelegatingContext
public boolean topLevelClassExists(String name,
TypeSystem ts)
name is an in-scope top-level class
topLevelClassExists in interface TypeContexttopLevelClassExists in class DelegatingContext
public DJClass getTopLevelClass(String name,
TypeSystem ts)
throws AmbiguousNameException
null if it does not exist.
getTopLevelClass in interface TypeContextgetTopLevelClass in class DelegatingContextAmbiguousNameException
public boolean memberClassExists(String name,
TypeSystem ts)
name is an in-scope member class
memberClassExists in interface TypeContextmemberClassExists in class DelegatingContext
public ClassType typeContainingMemberClass(String name,
TypeSystem ts)
throws AmbiguousNameException
null
if there is no such type.
typeContainingMemberClass in interface TypeContexttypeContainingMemberClass in class DelegatingContextAmbiguousNameException
public boolean typeVariableExists(String name,
TypeSystem ts)
name is an in-scope type variable.
typeVariableExists in interface TypeContexttypeVariableExists in class DelegatingContext
public VariableType getTypeVariable(String name,
TypeSystem ts)
null if it does not exist.
getTypeVariable in interface TypeContextgetTypeVariable in class DelegatingContextpublic ClassLoader getClassLoader()
TypeContext
getClassLoader in interface TypeContextgetClassLoader in class DelegatingContextpublic Access.Module accessModule()
TypeContext
accessModule in interface TypeContextaccessModule in class DelegatingContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||