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.
    Returns the SootClass declaring this one.
     
    Line and column information of the corresponding code object that this represents.
    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.
    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

      @Nonnull public 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

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

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

      @Nonnull public String getName()
    • getPosition

      @Nonnull public 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.