Class JavaAsmModifierList
java.lang.Object
gw.internal.gosu.parser.java.classinfo.JavaAsmModifierList
- All Implemented Interfaces:
IModifierList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AsmClassAnnotationInfo[]private intprivate IJavaAnnotatedElementprivate static final AsmClassAnnotationInfo[] -
Constructor Summary
ConstructorsConstructorDescriptionJavaAsmModifierList(IJavaAnnotatedElement owner, AsmClassAnnotationInfo[] annotations, int modifiers) -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation(Class annotationClass) intbooleanhasModifier(int modifierType) Returns true if this list has the modifier and false otherwise.booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) voidsetModifiers(int modifiers) toString()
-
Field Details
-
NONE
-
_modifiers
private int _modifiers -
_owner
-
_annotations
-
-
Constructor Details
-
JavaAsmModifierList
public JavaAsmModifierList(IJavaAnnotatedElement owner, AsmClassAnnotationInfo[] annotations, int modifiers)
-
-
Method Details
-
hasModifier
public boolean hasModifier(int modifierType) Description copied from interface:IModifierListReturns true if this list has the modifier and false otherwise.- Specified by:
hasModifierin interfaceIModifierList- Parameters:
modifierType- one of the constants of java.lang.reflect.Modifier
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin interfaceIModifierList
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceIModifierList
-
getAnnotations
- Specified by:
getAnnotationsin interfaceIModifierList
-
getAnnotation
- Specified by:
getAnnotationin interfaceIModifierList
-
setModifiers
public void setModifiers(int modifiers) -
toString
-