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.Object
Entity with optional annotations
-
-
Field Summary
Fields Modifier and Type Field Description protected int
accessflags
Class access flags.protected java.util.Collection<SClassReader.AnnotationInfo>
annotations
The annotations.
-
Constructor Summary
Constructors Constructor Description AnnotatedEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAccessFlags()
Get the access flags.SClassReader.AnnotationInfo
getAnnotation(java.lang.String anname)
Test if this entity has an annotation.java.util.Collection<SClassReader.AnnotationInfo>
getAnnotations()
Get the annotations.boolean
hasAnnotation(java.lang.String anname)
Test if this entity has an annotation.boolean
isFinal()
Tests if entity is final.boolean
isPublic()
Tests if entity is public.boolean
isSynthetic()
Tests if entity is synthetic.protected void
setAccessFlags(int accessflags)
Set the access flags.protected void
setAnnotations(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.
-
-