soot
Class SootField

java.lang.Object
  |
  +--soot.tagkit.AbstractHost
        |
        +--soot.SootField
All Implemented Interfaces:
ClassMember, Host, SparkField

public class SootField
extends AbstractHost
implements ClassMember, SparkField

Soot representation of a Java field. Can be declared to belong to a SootClass.


Constructor Summary
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.
 
Method Summary
 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()
           
 java.lang.String getSignature()
           
 java.lang.String getSubSignature()
           
 Type getType()
           
 boolean isDeclared()
           
 boolean isPhantom()
           
 boolean isPrivate()
          Convenience class returning true if this class member is private.
 boolean isProtected()
          Convenience class returning true if this class member is protected.
 boolean isPublic()
          Convenience class returning true if this class member is public.
 void setModifiers(int modifiers)
          Sets modifiers of this class member.
 void setName(java.lang.String name)
           
 void setPhantom(boolean value)
           
 void setType(Type t)
           
 java.lang.String toString()
           
 
Methods inherited from class soot.tagkit.AbstractHost
addTag, getTag, getTags, hasTag, removeTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SootField

public SootField(java.lang.String name,
                 Type type,
                 int modifiers)
Constructs a Soot field with the given name, type and modifiers.


SootField

public SootField(java.lang.String name,
                 Type type)
Constructs a Soot field with the given name, type and no modifiers.

Method Detail

equivHashCode

public int equivHashCode()

getName

public java.lang.String getName()

getSignature

public java.lang.String getSignature()

getSubSignature

public java.lang.String getSubSignature()

getDeclaringClass

public SootClass getDeclaringClass()
Description copied from interface: ClassMember
Returns the SootClass declaring this one.

Specified by:
getDeclaringClass in interface ClassMember

isPhantom

public boolean isPhantom()

setPhantom

public void setPhantom(boolean value)

isDeclared

public boolean isDeclared()

setName

public void setName(java.lang.String name)

getType

public Type getType()

setType

public void setType(Type t)

isPublic

public boolean isPublic()
Description copied from interface: ClassMember
Convenience class returning true if this class member is public.

Specified by:
isPublic in interface ClassMember

isProtected

public boolean isProtected()
Description copied from interface: ClassMember
Convenience class returning true if this class member is protected.

Specified by:
isProtected in interface ClassMember

isPrivate

public boolean isPrivate()
Description copied from interface: ClassMember
Convenience class returning true if this class member is private.

Specified by:
isPrivate in interface ClassMember

setModifiers

public void setModifiers(int modifiers)
Description copied from interface: ClassMember
Sets modifiers of this class member.

Specified by:
setModifiers in interface ClassMember

getModifiers

public int getModifiers()
Description copied from interface: ClassMember
Returns modifiers of this class member.

Specified by:
getModifiers in interface ClassMember

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDeclaration

public java.lang.String getDeclaration()