|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
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. |
java.lang.String |
getModifierText()
|
void |
setModifiers(int mods)
Sets the Java modifiers for this member, encoded as a mask. |
void |
setModifierText(java.lang.String modifierText)
|
Method Detail |
public int getModifiers() throws JotInvalidElementException
java.lang.reflect.Modifier
; use the methods provided by
Modifier
to decode the value (for example,
Modifier.isPublic()
).
JotInvalidElementException
Modifier
public void setModifiers(int mods) throws JotInvalidElementException, JotException
java.lang.reflect.Modifier
.
mods
- the new modifiers mask.
JotInvalidElementException
JotException
public java.lang.String getModifierText() throws JotInvalidElementException
JotInvalidElementException
public void setModifierText(java.lang.String modifierText) throws JotInvalidElementException
JotInvalidElementException
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.