Package jadex.classreader
Class SClassReader.AnnotatedEntity
java.lang.Object
jadex.classreader.SClassReader.AnnotatedEntity
- Direct Known Subclasses:
SClassReader.ClassEntity,SClassReader.ClassInfo
- Enclosing class:
- SClassReader
Entity with optional annotations
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intClass access flags.protected Collection<SClassReader.AnnotationInfo>The annotations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the access flags.getAnnotation(String anname) Test if this entity has an annotation.Get the annotations.booleanhasAnnotation(String anname) Test if this entity has an annotation.booleanisFinal()Tests if entity is final.booleanisPublic()Tests if entity is public.booleanTests if entity is synthetic.protected voidsetAccessFlags(int accessflags) Set the access flags.protected voidsetAnnotations(Collection<SClassReader.AnnotationInfo> annotations) Set the annotations.
-
Field Details
-
annotations
The annotations. -
accessflags
protected int accessflagsClass access flags.
-
-
Constructor Details
-
AnnotatedEntity
public AnnotatedEntity()
-
-
Method Details
-
getAnnotations
Get the annotations.- Returns:
- the annotations
-
setAnnotations
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
Test if this entity has an annotation.- Parameters:
annname- The annotation name.
-
getAnnotation
Test if this entity has an annotation.- Parameters:
annname- The annotation name.
-