Package sootup.core.model
Class SootClassMember<S extends SootClassMemberSignature>
java.lang.Object
sootup.core.model.SootClassMember<S>
- All Implemented Interfaces:
HasPosition
- Direct Known Subclasses:
JavaSootField,JavaSootMethod
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intReturns a hash code for this method consistent with structural equality.@NonNull ClassTypeReturns the SootClass declaring this one.@NonNull StringgetName()@NonNull PositionLine and column information of the corresponding code object that this represents.@NonNull SReturns the Soot signature of this method.abstract booleanisFinal()Convenience method returning true if this field is final.abstract booleanConvenience method returning true if this class member is private.abstract booleanConvenience method returning true if this class member is protected.abstract booleanisPublic()Convenience method returning true if this class member is public.abstract booleanisStatic()Convenience method returning true if this class member is static.@NonNull StringtoString()Returns the signature of this method.
-
Field Details
-
signature
-
position
-
-
Constructor Details
-
SootClassMember
-
-
Method Details
-
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
Returns the signature of this method. -
getSignature
Returns the Soot signature of this method. Used to refer to methods unambiguously. -
getName
-
getPosition
Description copied from interface:HasPositionLine and column information of the corresponding code object that this represents.- Specified by:
getPositionin interfaceHasPosition- Returns:
- a
Positioncontaining position information.
-