public interface HasModifiersT extends Tree
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
void |
addModifiers(int modifiers)
Adds the modifiers except for INTERFACE, ENUM, and ANNOTATION.
|
java.util.List |
getAnnotations()
Gets the list of annotations.
|
int |
getModifiers()
Gets the modifiers.
|
boolean |
isAbstract()
True if this is abstract.
|
boolean |
isFinal()
True if this is final.
|
boolean |
isPrivate()
True if this is private.
|
boolean |
isProtected()
True if this is protected.
|
boolean |
isPublic()
True if this is public.
|
boolean |
isStatic()
True if this is static.
|
boolean |
isStrictfp()
True if this is strictfp.
|
void |
removeModifiers(int modifiers)
Removes the modifiers.
|
void |
setModifiers(int modifiers)
Sets the modifiers except for INTERFACE, ENUM, and ANNOTATION.
|
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
int getModifiers()
void addModifiers(int modifiers)
modifiers
- Valid values come from JavaConstants.ACC_* and are
determined on a per-node basis.
The following modifiers are always ignored:
ACC_INTERFACE, ACC_ENUM, ACC_ANNOTATION. In order
to set them, you must use the special setter
ClassT.setTypeKind(I).java.lang.UnsupportedOperationException
- if this operation is illegal.void setModifiers(int modifiers)
modifiers
- Valid values come from JavaConstants.ACC_* and are
determined on a per-node basis.
The following modifiers are always ignored:
ACC_INTERFACE, ACC_ENUM, ACC_ANNOTATION. In order
to set them, you must use the special setter
ClassT.setTypeKind(I).java.lang.UnsupportedOperationException
- if this operation is illegal.void removeModifiers(int modifiers)
modifiers
- Valid values come from JavaConstants.ACC_* and are
determined on a per-node basis.java.lang.UnsupportedOperationException
- if this operation is illegal.java.util.List getAnnotations()
boolean isPublic()
boolean isPrivate()
boolean isProtected()
boolean isStatic()
boolean isFinal()
boolean isAbstract()
boolean isStrictfp()