Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

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

All Superinterfaces:
Tree
All Known Subinterfaces:
ClassInitializerT, ClassT, FieldDeclT, FieldVariableT, FormalParameterT, ImportT, LocalVariableT, MemberT, MethodT, PackageT, 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, accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 

Method Detail

getModifiers

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


addModifiers

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


setModifiers

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


removeModifiers

public void removeModifiers(int modifiers)
Removes the modifiers.


getAnnotations

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


isPublic

public boolean isPublic()
True if this is public.


isPrivate

public boolean isPrivate()
True if this is private.


isProtected

public boolean isProtected()
True if this is protected.


isStatic

public boolean isStatic()
True if this is static.


isFinal

public boolean isFinal()
True if this is final.


isAbstract

public boolean isAbstract()
True if this is abstract.


isStrictfp

public boolean isStrictfp()
True if this is strictfp.