public class JavaSourceModifierList extends Object implements IModifierList
| Constructor and Description |
|---|
JavaSourceModifierList(IJavaAnnotatedElement owner,
com.sun.source.tree.ModifiersTree modifiersTree) |
JavaSourceModifierList(JavaSourceEnumConstant owner,
com.sun.source.tree.ModifiersTree modifiersTree,
int modifiers)
For enum constants.
|
| Modifier and Type | Method and Description |
|---|---|
IAnnotationInfo |
getAnnotation(Class annotationClass) |
IAnnotationInfo[] |
getAnnotations() |
int |
getModifiers() |
boolean |
hasModifier(int modifierType)
Returns true if this list has the modifier and false otherwise.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
void |
setModifiers(int modifiers) |
String |
toString() |
public JavaSourceModifierList(JavaSourceEnumConstant owner, com.sun.source.tree.ModifiersTree modifiersTree, int modifiers)
public JavaSourceModifierList(IJavaAnnotatedElement owner, com.sun.source.tree.ModifiersTree modifiersTree)
public boolean hasModifier(int modifierType)
IModifierListhasModifier in interface IModifierListmodifierType - one of the constants of java.lang.reflect.Modifierpublic int getModifiers()
getModifiers in interface IModifierListpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface IModifierListpublic IAnnotationInfo[] getAnnotations()
getAnnotations in interface IModifierListpublic IAnnotationInfo getAnnotation(Class annotationClass)
getAnnotation in interface IModifierListpublic void setModifiers(int modifiers)
Copyright © 2015. All rights reserved.