Package soot
Class SootField
- java.lang.Object
-
- soot.tagkit.AbstractHost
-
- soot.SootField
-
- All Implemented Interfaces:
ClassMember,PaddleField,SparkField,Host
public class SootField extends AbstractHost implements ClassMember, SparkField, PaddleField
Soot representation of a Java field. Can be declared to belong to a SootClass.
-
-
Field Summary
Fields Modifier and Type Field Description protected SootClassdeclaringClassprotected booleanisDeclaredprotected booleanisPhantomprotected intmodifiersprotected Stringnameprotected Stringsigprotected StringsubSigprotected Typetype-
Fields inherited from class soot.tagkit.AbstractHost
col, line, mTagList
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intequivHashCode()StringgetDeclaration()SootClassgetDeclaringClass()Returns the SootClass declaring this one.intgetModifiers()Returns modifiers of this class member.StringgetName()StringgetSignature()static StringgetSignature(SootClass cl, String subSignature)static StringgetSignature(SootClass cl, String name, Type type)StringgetSubSignature()protected static StringgetSubSignature(String name, Type type)TypegetType()booleanisDeclared()Returns true when some SootClass object declares this object.booleanisFinal()Convenience method returning true if this field is final.booleanisPhantom()Returns true when this object is from a phantom class.booleanisPrivate()Convenience method returning true if this field is private.booleanisProtected()Convenience method returning true if this field is protected.booleanisPublic()Convenience method returning true if this field is public.booleanisStatic()Convenience method returning true if this field is static.SootFieldRefmakeRef()voidsetDeclared(boolean isDeclared)voidsetDeclaringClass(SootClass sc)voidsetModifiers(int modifiers)Sets modifiers of this class member.voidsetName(String name)voidsetPhantom(boolean value)Sets the phantom flagvoidsetType(Type t)StringtoString()-
Methods inherited from class soot.tagkit.AbstractHost
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTag
-
-
-
-
Field Detail
-
name
protected String name
-
type
protected Type type
-
modifiers
protected int modifiers
-
isDeclared
protected boolean isDeclared
-
declaringClass
protected SootClass declaringClass
-
isPhantom
protected boolean isPhantom
-
sig
protected volatile String sig
-
subSig
protected volatile String subSig
-
-
Method Detail
-
equivHashCode
public int equivHashCode()
-
getSignature
public String getSignature()
-
getSubSignature
public String getSubSignature()
-
getDeclaringClass
public SootClass getDeclaringClass()
Description copied from interface:ClassMemberReturns the SootClass declaring this one.- Specified by:
getDeclaringClassin interfaceClassMember
-
setDeclaringClass
public void setDeclaringClass(SootClass sc)
-
isPhantom
public boolean isPhantom()
Description copied from interface:ClassMemberReturns true when this object is from a phantom class.- Specified by:
isPhantomin interfaceClassMember
-
setPhantom
public void setPhantom(boolean value)
Description copied from interface:ClassMemberSets the phantom flag- Specified by:
setPhantomin interfaceClassMember
-
isDeclared
public boolean isDeclared()
Description copied from interface:ClassMemberReturns true when some SootClass object declares this object.- Specified by:
isDeclaredin interfaceClassMember
-
setDeclared
public void setDeclared(boolean isDeclared)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getType
public Type getType()
- Specified by:
getTypein interfaceSparkField
-
setType
public void setType(Type t)
-
isPublic
public boolean isPublic()
Convenience method returning true if this field is public.- Specified by:
isPublicin interfaceClassMember
-
isProtected
public boolean isProtected()
Convenience method returning true if this field is protected.- Specified by:
isProtectedin interfaceClassMember
-
isPrivate
public boolean isPrivate()
Convenience method returning true if this field is private.- Specified by:
isPrivatein interfaceClassMember
-
isStatic
public boolean isStatic()
Convenience method returning true if this field is static.- Specified by:
isStaticin interfaceClassMember
-
isFinal
public boolean isFinal()
Convenience method returning true if this field is final.
-
setModifiers
public void setModifiers(int modifiers)
Description copied from interface:ClassMemberSets modifiers of this class member.- Specified by:
setModifiersin interfaceClassMember
-
getModifiers
public int getModifiers()
Description copied from interface:ClassMemberReturns modifiers of this class member.- Specified by:
getModifiersin interfaceClassMember
-
getDeclaration
public String getDeclaration()
-
makeRef
public SootFieldRef makeRef()
-
-