Package jadex.commons
Class SClassReader.AnnotatedEntity
- java.lang.Object
 - 
- jadex.commons.SClassReader.AnnotatedEntity
 
 
- 
- Direct Known Subclasses:
 SClassReader.ClassEntity,SClassReader.ClassInfo
- Enclosing class:
 - SClassReader
 
public static class SClassReader.AnnotatedEntity extends java.lang.ObjectEntity with optional annotations 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected intaccessflagsClass access flags.protected java.util.Collection<SClassReader.AnnotationInfo>annotationsThe annotations. 
- 
Constructor Summary
Constructors Constructor Description AnnotatedEntity() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAccessFlags()Get the access flags.SClassReader.AnnotationInfogetAnnotation(java.lang.String anname)Test if this entity has an annotation.java.util.Collection<SClassReader.AnnotationInfo>getAnnotations()Get the annotations.booleanhasAnnotation(java.lang.String anname)Test if this entity has an annotation.booleanisFinal()Tests if entity is final.booleanisPublic()Tests if entity is public.booleanisSynthetic()Tests if entity is synthetic.protected voidsetAccessFlags(int accessflags)Set the access flags.protected voidsetAnnotations(java.util.Collection<SClassReader.AnnotationInfo> annotations)Set the annotations. 
 - 
 
- 
- 
Field Detail
- 
annotations
protected java.util.Collection<SClassReader.AnnotationInfo> annotations
The annotations. 
- 
accessflags
protected int accessflags
Class access flags. 
 - 
 
- 
Method Detail
- 
getAnnotations
public java.util.Collection<SClassReader.AnnotationInfo> getAnnotations()
Get the annotations.- Returns:
 - the annotations
 
 
- 
setAnnotations
protected void setAnnotations(java.util.Collection<SClassReader.AnnotationInfo> annotations)
Set the annotations.- Parameters:
 annotations- the annotations to set
 
- 
getAccessFlags
public int getAccessFlags()
Get the access flags.- Returns:
 - the access flags
 
 
- 
setAccessFlags
protected void setAccessFlags(int accessflags)
Set the access flags.- Parameters:
 accessflags- the access flags to set
 
- 
isPublic
public boolean isPublic()
Tests if entity is public.- Returns:
 - True, if public.
 
 
- 
isFinal
public boolean isFinal()
Tests if entity is final.- Returns:
 - True, if final.
 
 
- 
isSynthetic
public boolean isSynthetic()
Tests if entity is synthetic.- Returns:
 - True, if synthetic.
 
 
- 
hasAnnotation
public boolean hasAnnotation(java.lang.String anname)
Test if this entity has an annotation.- Parameters:
 annname- The annotation name.
 
- 
getAnnotation
public SClassReader.AnnotationInfo getAnnotation(java.lang.String anname)
Test if this entity has an annotation.- Parameters:
 annname- The annotation name.
 
 - 
 
 -