|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.mjc.CMember
This class represents a member of a class or compilation unit. It is primarily just a data structure, apart from methods for generating the qualified name and for determining whether the member is accessible from some class. The classes in this hierarchy are used to track the signatures of the members declared in *.java files being compiled and *.class files that are read as needed. The subclasses also include methods for code generation.
CMember,
CField,
CMethod,
CClass| Field Summary | |
private MemberAccess |
accessControl
|
private boolean |
deprecated
|
private String |
ident
|
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
CMember(MemberAccess accessControl,
String ident,
boolean deprecated)
Constructs a top-level member export |
|
| Method Summary | |
MemberAccess |
access()
|
void |
addModifiers(long modifiers)
Add (bit or) to the modifiers of this member. |
boolean |
deprecated()
Indicates if this member is deprecated. |
CClass |
getCClass()
|
CCompilationUnit |
getCCompilationUnit()
Returns the compilation unit that hosts this member. |
CField |
getField()
|
String |
getIdent()
|
String |
getJavaName()
|
CMethod |
getMethod()
|
String |
getOwnerName()
|
String |
getQualNameWithSeparator(char c)
|
boolean |
hasDefaultAccess()
|
boolean |
hasProtectedVisibilityIn(CMemberHost from)
Indicates whether this member is accessible from the given host when this member has protected visibility. |
CMemberHost |
host()
Returns the host of this member's declaration, which is the same value returned by owner() unless this is a
top-level declaration. |
String |
ident()
|
boolean |
isAccessibleFrom(CMemberHost from)
Indicates whether this is accessible from the given host. |
boolean |
isDeclaredNonNull()
|
boolean |
isDeprecated()
|
boolean |
isFinal()
|
boolean |
isLocalTo(CMemberHost from)
Indicates whether the declaration of this member is local to the given host. |
boolean |
isPrivate()
|
boolean |
isProtected()
|
boolean |
isPublic()
|
boolean |
isStatic()
|
long |
modifiers()
|
CClass |
owner()
Returns the owner of this member or null if this is a top-level class declaration. |
String |
qualifiedName()
|
void |
setModifiers(long modifiers)
Sets the modifiers of this member |
| Methods inherited from class org.multijava.util.Utils |
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private String ident
private boolean deprecated
private MemberAccess accessControl
| Constructor Detail |
public CMember(MemberAccess accessControl,
String ident,
boolean deprecated)
accessControl - the owner, host, and modifiers for this memberident - the ident of this memberdeprecated - is this member deprecated| Method Detail |
public CClass owner()
public CMemberHost host()
owner() unless this is a
top-level declaration.
public String ident()
public String getIdent()
public String qualifiedName()
public String getOwnerName()
public String getJavaName()
public String getQualNameWithSeparator(char c)
public long modifiers()
public void addModifiers(long modifiers)
public void setModifiers(long modifiers)
public boolean deprecated()
public CField getField()
public CMethod getMethod()
public CClass getCClass()
public boolean isStatic()
public boolean isPublic()
public boolean isProtected()
public boolean isPrivate()
public boolean hasDefaultAccess()
public boolean isFinal()
public boolean isDeclaredNonNull()
public boolean isDeprecated()
public boolean isLocalTo(CMemberHost from)
from - the given host
public boolean isAccessibleFrom(CMemberHost from)
from - the host that wants access
public boolean hasProtectedVisibilityIn(CMemberHost from)
from - the host that wants access
public CCompilationUnit getCCompilationUnit()
public MemberAccess access()
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||