Package soot

Class SootField

    • Field Detail

      • 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
    • Constructor Detail

      • SootField

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

        public SootField​(String name,
                         Type type)
        Constructs a Soot field with the given name, type and no modifiers.
    • Method Detail

      • equivHashCode

        public int equivHashCode()
      • getSignature

        public String getSignature()
      • getSubSignature

        public String getSubSignature()
      • getSubSignature

        protected static String getSubSignature​(String name,
                                                Type type)
      • setDeclaringClass

        public void setDeclaringClass​(SootClass sc)
      • isPhantom

        public boolean isPhantom()
        Description copied from interface: ClassMember
        Returns true when this object is from a phantom class.
        Specified by:
        isPhantom in interface ClassMember
      • setPhantom

        public void setPhantom​(boolean value)
        Description copied from interface: ClassMember
        Sets the phantom flag
        Specified by:
        setPhantom in interface ClassMember
      • isDeclared

        public boolean isDeclared()
        Description copied from interface: ClassMember
        Returns true when some SootClass object declares this object.
        Specified by:
        isDeclared in interface ClassMember
      • setDeclared

        public void setDeclared​(boolean isDeclared)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • setType

        public void setType​(Type t)
      • isPublic

        public boolean isPublic()
        Convenience method returning true if this field is public.
        Specified by:
        isPublic in interface ClassMember
      • isProtected

        public boolean isProtected()
        Convenience method returning true if this field is protected.
        Specified by:
        isProtected in interface ClassMember
      • isPrivate

        public boolean isPrivate()
        Convenience method returning true if this field is private.
        Specified by:
        isPrivate in interface ClassMember
      • isStatic

        public boolean isStatic()
        Convenience method returning true if this field is static.
        Specified by:
        isStatic in interface ClassMember
      • isFinal

        public boolean isFinal()
        Convenience method returning true if this field is final.
      • 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
      • getDeclaration

        public String getDeclaration()