Class JimpleLocal

    • Field Detail

      • type

        protected Type type
    • Constructor Detail

      • JimpleLocal

        public JimpleLocal​(String name,
                           Type type)
        Constructs a JimpleLocal of the given name and type.
    • Method Detail

      • equivTo

        public boolean equivTo​(Object o)
        Returns true if the given object is structurally equal to this one.
        Specified by:
        equivTo in interface EquivTo
      • equivHashCode

        public int equivHashCode()
        Returns a hash code for this object, consistent with structural equality.
        Specified by:
        equivHashCode in interface EquivTo
      • clone

        public Object clone()
        Returns a clone of the current JimpleLocal.
        Specified by:
        clone in interface Value
        Overrides:
        clone in class Object
      • getName

        public String getName()
        Returns the name of this object.
        Specified by:
        getName in interface Local
      • setName

        public void setName​(String name)
        Sets the name of this object as given.
        Specified by:
        setName in interface Local
      • getType

        public Type getType()
        Returns the type of this local.
        Specified by:
        getType in interface Value
      • setType

        public void setType​(Type t)
        Sets the type of this local.
        Specified by:
        setType in interface Local
      • getUseBoxes

        public final List<ValueBox> getUseBoxes()
        Description copied from interface: Value
        Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.
        Specified by:
        getUseBoxes in interface Value
      • apply

        public void apply​(Switch sw)
        Description copied from interface: Switchable
        Called when this object is visited.
        Specified by:
        apply in interface Switchable
      • setNumber

        public void setNumber​(int number)
        Specified by:
        setNumber in interface Numberable
      • isStackLocal

        public boolean isStackLocal()
        Specified by:
        isStackLocal in interface Local