public class ClassContextResolver extends AbstractAccessControlResolver
ClassContextResolver
looks up type names qualified with a class name.
For example, if the class is "A.B", the class context will return the class
for member class "A.B.C" (if it exists) when asked for "C".Modifier and Type | Field and Description |
---|---|
protected ClassType |
type |
ts
Constructor and Description |
---|
ClassContextResolver(TypeSystem ts,
ClassType type)
Construct a resolver.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canAccess(Named n,
ClassType accessor) |
ClassType |
classType()
The class in whose context we look.
|
Named |
find(java.lang.String name,
ClassType accessor)
Find a type object in the context of the class.
|
java.lang.String |
toString() |
find
protected ClassType type
public ClassContextResolver(TypeSystem ts, ClassType type)
ts
- The type system.type
- The type in whose context we search for member types.public java.lang.String toString()
toString
in class java.lang.Object
public Named find(java.lang.String name, ClassType accessor) throws SemanticException
name
- The name to search for.SemanticException
public ClassType classType()