SFE.Compiler
Class VarLvalue

java.lang.Object
  extended by SFE.Compiler.Lvalue
      extended by SFE.Compiler.VarLvalue

public class VarLvalue
extends Lvalue

The VarLvalue class extends the Lvalue class, and can be when a variable is used as Lvalue.


Constructor Summary
VarLvalue(Variable variable, boolean isOutput)
          Constructs a new VarLvalue from a given variable.
 
Method Summary
 java.lang.String getName()
          Returns the name of the lvalue of this object.
 Type getType()
          Returns the Type of this Lvalue object.
 int size()
          Returns the size of this Lvalue object in bits.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class SFE.Compiler.Lvalue
getDerivedLvalues, hasDerives, isOutput, notOutput
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VarLvalue

public VarLvalue(Variable variable,
                 boolean isOutput)
Constructs a new VarLvalue from a given variable.

Parameters:
variable - the variable from which to construct this VarLvalue.
Method Detail

getType

public Type getType()
Returns the Type of this Lvalue object.

Specified by:
getType in class Lvalue
Returns:
the Type of this lvalue object.

size

public int size()
Returns the size of this Lvalue object in bits.

Specified by:
size in class Lvalue
Returns:
an integer representing size of this lvalue object in bits.

getName

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

Specified by:
getName in class Lvalue
Returns:
a string representing this lvalue's name.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.