soot.baf.internal
Class BafLocal

java.lang.Object
  extended by soot.baf.internal.BafLocal
All Implemented Interfaces:
Serializable, EquivTo, Immediate, Local, Numberable, Switchable, Value

public class BafLocal
extends Object
implements Local

See Also:
Serialized Form

Constructor Summary
BafLocal(String name, Type t)
           
 
Method Summary
 void apply(Switch s)
          Called when this object is visited.
 Object clone()
          Returns a clone of this Value.
 int equivHashCode()
          Returns a hash code for this object, consistent with structural equality.
 boolean equivTo(Object o)
          Returns true if this object is equivalent to o.
 String getName()
          Returns the name of the current Local variable.
 int getNumber()
           
 Type getType()
          Returns the Soot type of this Value.
 List getUseBoxes()
          Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.
 void setName(String name)
          Sets the name of the current variable.
 void setNumber(int number)
           
 void setType(Type t)
          Sets the type of the current variable.
 String toString()
           
 void toString(UnitPrinter up)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BafLocal

public BafLocal(String name,
                Type t)
Method Detail

equivTo

public boolean equivTo(Object o)
Description copied from interface: EquivTo
Returns true if this object is equivalent to o.

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()
Description copied from interface: Value
Returns a clone of this Value.

Specified by:
clone in interface Value
Overrides:
clone in class Object

getName

public String getName()
Description copied from interface: Local
Returns the name of the current Local variable.

Specified by:
getName in interface Local

setName

public void setName(String name)
Description copied from interface: Local
Sets the name of the current variable.

Specified by:
setName in interface Local

getType

public Type getType()
Description copied from interface: Value
Returns the Soot type of this Value.

Specified by:
getType in interface Value

setType

public void setType(Type t)
Description copied from interface: Local
Sets the type of the current variable.

Specified by:
setType in interface Local

toString

public String toString()
Overrides:
toString in class Object

toString

public void toString(UnitPrinter up)
Specified by:
toString in interface Value

getUseBoxes

public List 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 s)
Description copied from interface: Switchable
Called when this object is visited.

Specified by:
apply in interface Switchable

getNumber

public final int getNumber()
Specified by:
getNumber in interface Numberable

setNumber

public final void setNumber(int number)
Specified by:
setNumber in interface Numberable