soot.jimple.internal
Class JimpleLocal

java.lang.Object
  |
  +--soot.jimple.internal.JimpleLocal
All Implemented Interfaces:
ConvertToBaf, EquivTo, Local, java.io.Serializable, Switchable, ToBriefString, Value

public class JimpleLocal
extends java.lang.Object
implements Local, ConvertToBaf

See Also:
Serialized Form

Constructor Summary
JimpleLocal(java.lang.String name, Type t)
          Constructs a JimpleLocal of the given name and type.
 
Method Summary
 void apply(Switch sw)
          Called when this object is visited.
 java.lang.Object clone()
          Returns a clone of the current JimpleLocal.
 void convertToBaf(JimpleToBafContext context, java.util.List out)
           
 int equivHashCode()
          Returns a hash code for this object, consistent with structural equality.
 boolean equivTo(java.lang.Object o)
          Returns true if the given object is structurally equal to this one.
 java.lang.String getName()
          Returns the name of this object.
 Type getType()
          Returns the type of this local.
 java.util.List getUseBoxes()
          Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.
 int hashCode()
          Returns a hashCode consistent with object equality.
 void setName(java.lang.String name)
          Sets the name of this object as given.
 void setType(Type t)
          Sets the type of this local.
 java.lang.String toBriefString()
          Returns a brief description of this object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JimpleLocal

public JimpleLocal(java.lang.String name,
                   Type t)
Constructs a JimpleLocal of the given name and type.

Method Detail

equivTo

public boolean equivTo(java.lang.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 java.lang.Object clone()
Returns a clone of the current JimpleLocal.

Specified by:
clone in interface Value
Overrides:
clone in class java.lang.Object

getName

public java.lang.String getName()
Returns the name of this object.

Specified by:
getName in interface Local

setName

public void setName(java.lang.String name)
Sets the name of this object as given.

Specified by:
setName in interface Local

hashCode

public int hashCode()
Returns a hashCode consistent with object equality.

Overrides:
hashCode in class java.lang.Object

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

toString

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

toBriefString

public java.lang.String toBriefString()
Description copied from interface: ToBriefString
Returns a brief description of this object.

Specified by:
toBriefString in interface ToBriefString

getUseBoxes

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

Specified by:
apply in interface Switchable

convertToBaf

public void convertToBaf(JimpleToBafContext context,
                         java.util.List out)
Specified by:
convertToBaf in interface ConvertToBaf