|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The JotHasModifiers interface indicates any JOT object that has
modifiers. Examples of objects that can have modifiers include
classes, fields, methods, and variable declarations. Not all modifiers
are legal for all objects. For example, the only legal modifer for a
variable is final
, and fields cannot be native
or synchronized
.
Modifier
Method Summary | |
int |
getModifiers()
Retrieves the Java modifiers declared for this member, encoded as a mask. |
void |
setModifiers(int mods)
Sets the Java modifiers for this member, encoded as a mask. |
Method Detail |
public int getModifiers()
java.lang.reflect.Modifier
; use the methods provided by
Modifier
to decode the value (for example,
Modifier.isPublic()
).
Modifier
public void setModifiers(int mods) throws JotException
java.lang.reflect.Modifier
.
mods
- the new modifiers mask.
JotException
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.