Package sootup.core.model
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 TypeMethodDescriptionabstract int
Returns a hash code for this method consistent with structural equality.Returns the SootClass declaring this one.getName()
Line and column information of the corresponding code object that this represents.Returns the Soot signature of this method.abstract boolean
isFinal()
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
isPublic()
Convenience method returning true if this class member is public.abstract boolean
isStatic()
Convenience method returning true if this class member is static.toString()
Returns the signature of this method.
-
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:HasPosition
Line and column information of the corresponding code object that this represents.- Specified by:
getPosition
in interfaceHasPosition
- Returns:
- a
Position
containing position information.
-