Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

javax.ide.model.java.source.tree
Interface HasModifiersT

All Superinterfaces:
Tree
All Known Subinterfaces:
ClassInitializerT, ClassT, EnumConstantT, FieldDeclT, FieldVariableT, FormalParameterT, ImportT, LocalVariableDeclT, LocalVariableT, MemberT, MemberVariableT, MethodT, PackageT, VariableDeclT, VariableT

public interface HasModifiersT
extends Tree

Common supertype for elements that may have modifiers. Note that an annotation is considered a modifier.


Field Summary
 
Fields inherited from interface javax.ide.model.java.source.tree.Tree
EMPTY_ARRAY
 
Method Summary
 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.
 
Methods inherited from interface javax.ide.model.java.source.tree.Tree
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 

Method Detail

getModifiers

int getModifiers()
Gets the modifiers. Right now, this returns the effective modifiers rather than the raw modifiers.

Returns:
The modifiers associated with this object.

addModifiers

void addModifiers(int modifiers)
Adds the modifiers except for INTERFACE, ENUM, and ANNOTATION.

Parameters:
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).

Throws:
java.lang.UnsupportedOperationException - if this operation is illegal.

setModifiers

void setModifiers(int modifiers)
Sets the modifiers except for INTERFACE, ENUM, and ANNOTATION.

Parameters:
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).

Throws:
java.lang.UnsupportedOperationException - if this operation is illegal.

removeModifiers

void removeModifiers(int modifiers)
Removes the modifiers.

Parameters:
modifiers - Valid values come from JavaConstants.ACC_* and are determined on a per-node basis.
Throws:
java.lang.UnsupportedOperationException - if this operation is illegal.

getAnnotations

java.util.List getAnnotations()
Gets the list of annotations.

Returns:
The array of annotations on this object.

List of AnnotationTs.


isPublic

boolean isPublic()
True if this is public.

Returns:
True if this is public.

isPrivate

boolean isPrivate()
True if this is private.

Returns:
True if this is private.

isProtected

boolean isProtected()
True if this is protected.

Returns:
True if this is protected.

isStatic

boolean isStatic()
True if this is static.

Returns:
True if this is static.

isFinal

boolean isFinal()
True if this is final.

Returns:
True if this is final.

isAbstract

boolean isAbstract()
True if this is abstract.

Returns:
True if this is abstract.

isStrictfp

boolean isStrictfp()
True if this is strictfp.

Returns:
True if this is strictfp.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.