|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface is implementation by abstractions that can host members. It provides operations for testing the permissibility of access to the hosted members.
| Method Summary | |
boolean |
descendsFrom(CClass maybeSuper)
Indicates whether this host is a subclass of the given class, where "subclass" is the reflexive, transitive closure of the extends relation. |
CMemberHost |
host()
Returns the host of this host, that is, the context in which this host is declared. |
String |
ident()
Gives the identifier for this host, or null for a compilation unit. |
boolean |
isAccessibleFrom(CMemberHost from)
Indicates whether this is accessible from the given host. |
boolean |
isClass()
Indicates whether this host is a class. |
boolean |
isCompilationUnit()
Indicates whether this host is a compilation unit |
boolean |
isDefinedInside(CMemberHost maybeOutside)
Indicates whether this is defined inside the given host. |
boolean |
isInnerClass()
Indicates whether this host is an inner class, i.e., a non-static member class. |
boolean |
isNestedType()
Indicates whether this host is a nested type, i.e., a member type, a type declared within another type. |
boolean |
nestedDescendsFrom(CClass maybeOuterSuper)
Returns true if this host is a subclass of the given class or if some host of this host is a subclass of the given class. |
String |
packageName()
Gives the package name for this host. |
| Method Detail |
public boolean isAccessibleFrom(CMemberHost from)
from - the host that wants access
public boolean isDefinedInside(CMemberHost maybeOutside)
maybeOutside - the host that this may be inside
public boolean descendsFrom(CClass maybeSuper)
maybeSuper - the potential superclasspublic boolean nestedDescendsFrom(CClass maybeOuterSuper)
maybeOuterSuper - the potential superclass public boolean isClass()
public boolean isNestedType()
public boolean isInnerClass()
public boolean isCompilationUnit()
public String ident()
public String packageName()
public CMemberHost host()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||