Package pascal.taie.language.classes
Class ClassMember
java.lang.Object
pascal.taie.language.classes.ClassMember
- All Implemented Interfaces:
Serializable
,Annotated
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnnotationHolder
protected final JClass
protected final String
protected String
-
Constructor Summary
ModifierConstructorDescriptionprotected
ClassMember
(JClass declaringClass, String name, Set<Modifier> modifiers, AnnotationHolder annotationHolder) -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(String annotationType) getName()
boolean
hasAnnotation
(String annotationType) boolean
boolean
boolean
boolean
isPublic()
boolean
isStatic()
toString()
-
Field Details
-
declaringClass
-
name
-
modifiers
-
annotationHolder
-
signature
-
-
Constructor Details
-
ClassMember
protected ClassMember(JClass declaringClass, String name, Set<Modifier> modifiers, AnnotationHolder annotationHolder)
-
-
Method Details
-
getDeclaringClass
- Returns:
- the declaring class of the class member.
-
getName
-
getSignature
-
getModifiers
-
isPublic
public boolean isPublic() -
isProtected
public boolean isProtected() -
isPrivate
public boolean isPrivate() -
isStatic
public boolean isStatic() -
isApplication
public boolean isApplication() -
hasAnnotation
- Specified by:
hasAnnotation
in interfaceAnnotated
- Returns:
true
if this annotated object has an annotation ofannotationType
.
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotated
- Returns:
- the
Annotation
of typeannotationType
if it is present in this annotated; otherwise,null
is returned.
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotated
- Returns:
- all annotations in this annotated object.
-
toString
-