Class ClassMember

java.lang.Object
pascal.taie.language.classes.ClassMember
All Implemented Interfaces:
Serializable, Annotated
Direct Known Subclasses:
JField, JMethod

public abstract class ClassMember extends Object implements Annotated, Serializable
See Also:
  • Field Details

    • declaringClass

      protected final JClass declaringClass
    • name

      protected final String name
    • modifiers

      protected final Set<Modifier> modifiers
    • annotationHolder

      protected final AnnotationHolder annotationHolder
    • signature

      protected String signature
  • Constructor Details

  • Method Details

    • getDeclaringClass

      public JClass getDeclaringClass()
      Returns:
      the declaring class of the class member.
    • getName

      public String getName()
    • getSignature

      public String getSignature()
    • getModifiers

      public Set<Modifier> getModifiers()
    • isPublic

      public boolean isPublic()
    • isProtected

      public boolean isProtected()
    • isPrivate

      public boolean isPrivate()
    • isStatic

      public boolean isStatic()
    • isApplication

      public boolean isApplication()
    • hasAnnotation

      public boolean hasAnnotation(String annotationType)
      Specified by:
      hasAnnotation in interface Annotated
      Returns:
      true if this annotated object has an annotation of annotationType.
    • getAnnotation

      @Nullable public Annotation getAnnotation(String annotationType)
      Specified by:
      getAnnotation in interface Annotated
      Returns:
      the Annotation of type annotationType if it is present in this annotated; otherwise, null is returned.
    • getAnnotations

      public Collection<Annotation> getAnnotations()
      Specified by:
      getAnnotations in interface Annotated
      Returns:
      all annotations in this annotated object.
    • toString

      public String toString()
      Overrides:
      toString in class Object