public class SootField extends AbstractHost implements ClassMember, SparkField, Numberable, PaddleField
| Modifier and Type | Field and Description |
|---|---|
protected SootClass |
declaringClass |
protected boolean |
isDeclared |
protected boolean |
isPhantom |
protected int |
modifiers |
protected java.lang.String |
name |
protected Type |
type |
col, line, mTagList| Constructor and Description |
|---|
SootField(java.lang.String name,
Type type)
Constructs a Soot field with the given name, type and no modifiers.
|
SootField(java.lang.String name,
Type type,
int modifiers)
Constructs a Soot field with the given name, type and modifiers.
|
| Modifier and Type | Method and Description |
|---|---|
int |
equivHashCode() |
java.lang.String |
getDeclaration() |
SootClass |
getDeclaringClass()
Returns the SootClass declaring this one.
|
int |
getModifiers()
Returns modifiers of this class member.
|
java.lang.String |
getName() |
int |
getNumber() |
java.lang.String |
getSignature() |
static java.lang.String |
getSignature(SootClass cl,
java.lang.String name,
Type type) |
java.lang.String |
getSubSignature() |
Type |
getType() |
boolean |
isDeclared()
Returns true when some SootClass object declares this object.
|
boolean |
isFinal()
Convenience method returning true if this field is final.
|
boolean |
isPhantom()
Returns true when this object is from a phantom class.
|
boolean |
isPrivate()
Convenience method returning true if this field is private.
|
boolean |
isProtected()
Convenience method returning true if this field is protected.
|
boolean |
isPublic()
Convenience method returning true if this field is public.
|
boolean |
isStatic()
Convenience method returning true if this field is static.
|
SootFieldRef |
makeRef() |
void |
setDeclared(boolean declared) |
void |
setDeclaringClass(SootClass sc) |
void |
setModifiers(int modifiers)
Sets modifiers of this class member.
|
void |
setName(java.lang.String name) |
void |
setNumber(int number) |
void |
setPhantom(boolean value)
Sets the phantom flag
|
void |
setType(Type t) |
java.lang.String |
toString() |
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagprotected java.lang.String name
protected Type type
protected int modifiers
protected boolean isDeclared
protected SootClass declaringClass
protected boolean isPhantom
public SootField(java.lang.String name,
Type type,
int modifiers)
public SootField(java.lang.String name,
Type type)
public int equivHashCode()
public java.lang.String getName()
public java.lang.String getSignature()
public static java.lang.String getSignature(SootClass cl, java.lang.String name, Type type)
public java.lang.String getSubSignature()
public SootClass getDeclaringClass()
ClassMembergetDeclaringClass in interface ClassMemberpublic boolean isPhantom()
ClassMemberisPhantom in interface ClassMemberpublic void setPhantom(boolean value)
ClassMembersetPhantom in interface ClassMemberpublic boolean isDeclared()
ClassMemberisDeclared in interface ClassMemberpublic void setName(java.lang.String name)
public Type getType()
getType in interface SparkFieldpublic void setType(Type t)
public boolean isPublic()
isPublic in interface ClassMemberpublic boolean isProtected()
isProtected in interface ClassMemberpublic boolean isPrivate()
isPrivate in interface ClassMemberpublic boolean isStatic()
isStatic in interface ClassMemberpublic boolean isFinal()
public void setModifiers(int modifiers)
ClassMembersetModifiers in interface ClassMemberpublic int getModifiers()
ClassMembergetModifiers in interface ClassMemberpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDeclaration()
public final int getNumber()
getNumber in interface Numberablepublic final void setNumber(int number)
setNumber in interface Numberablepublic SootFieldRef makeRef()
public void setDeclared(boolean declared)
public void setDeclaringClass(SootClass sc)