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 int
Class access flags.protected Collection
<SClassReader.AnnotationInfo> The annotations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the access flags.getAnnotation
(String anname) Test if this entity has an annotation.Get the annotations.boolean
hasAnnotation
(String anname) Test if this entity has an annotation.boolean
isFinal()
Tests if entity is final.boolean
isPublic()
Tests if entity is public.boolean
Tests if entity is synthetic.protected void
setAccessFlags
(int accessflags) Set the access flags.protected void
setAnnotations
(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.
-