Class SootClassMember<S extends SootClassMemberSignature>

java.lang.Object
sootup.core.model.SootClassMember<S>
All Implemented Interfaces:
HasPosition
Direct Known Subclasses:
SootField, SootMethod

public abstract class SootClassMember<S extends SootClassMemberSignature> extends Object implements HasPosition
Provides methods common to Soot objects belonging to classes, namely SootField and SootMethod.
Author:
Linghui Luo, Jan Martin Persch
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract int
    Returns a hash code for this method consistent with structural equality.
    @NonNull ClassType
    Returns the SootClass declaring this one.
    @NonNull String
     
    @NonNull Position
    Line and column information of the corresponding code object that this represents.
    @NonNull S
    Returns the Soot signature of this method.
    abstract boolean
    Convenience method returning true if this field is final.
    abstract boolean
    Convenience method returning true if this class member is private.
    abstract boolean
    Convenience method returning true if this class member is protected.
    abstract boolean
    Convenience method returning true if this class member is public.
    abstract boolean
    Convenience method returning true if this class member is static.
    @NonNull String
    Returns the signature of this method.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getDeclaringClassType

      public @NonNull ClassType getDeclaringClassType()
      Returns the SootClass declaring this one.
    • isProtected

      public abstract boolean isProtected()
      Convenience method returning true if this class member is protected.
    • isPrivate

      public abstract boolean isPrivate()
      Convenience method returning true if this class member is private.
    • isPublic

      public abstract boolean isPublic()
      Convenience method returning true if this class member is public.
    • isStatic

      public abstract boolean isStatic()
      Convenience method returning true if this class member is static.
    • isFinal

      public abstract boolean isFinal()
      Convenience method returning true if this field is final.
    • equivHashCode

      public abstract int equivHashCode()
      Returns a hash code for this method consistent with structural equality.
    • toString

      public @NonNull String toString()
      Returns the signature of this method.
      Overrides:
      toString in class Object
    • getSignature

      public @NonNull S getSignature()
      Returns the Soot signature of this method. Used to refer to methods unambiguously.
    • getName

      public @NonNull String getName()
    • getPosition

      public @NonNull Position getPosition()
      Description copied from interface: HasPosition
      Line and column information of the corresponding code object that this represents.
      Specified by:
      getPosition in interface HasPosition
      Returns:
      a Position containing position information.