SFE.Compiler
Class BitLvalue

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

public class BitLvalue
extends Lvalue

This class represents a bit of a VarLvalue


Constructor Summary
BitLvalue(Lvalue varLvalue, int bit)
          Constructs a new BitLvalue from a given VarLvalue and the offset in it.
 
Method Summary
 java.lang.String getName()
          Returns a string representation of this BitLvalue's name.
 Type getType()
          Returns the base Type of this BitLvalue.
 int size()
          Returns 1 as size of this BitLvalue object in bits.
 java.lang.String toString()
          Returns a string representation of this BitLvalue.
 
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

BitLvalue

public BitLvalue(Lvalue varLvalue,
                 int bit)
Constructs a new BitLvalue from a given VarLvalue and the offset in it.

Parameters:
varLvalue - the given VarLvalue.
bit - the bit offset in the VarLvalue.
Method Detail

size

public int size()
Returns 1 as size of this BitLvalue object in bits.

Specified by:
size in class Lvalue
Returns:
1 as size of this BitLvalue object in bits.

toString

public java.lang.String toString()
Returns a string representation of this BitLvalue.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this BitLvalue.

getName

public java.lang.String getName()
Returns a string representation of this BitLvalue's name.

Specified by:
getName in class Lvalue
Returns:
a string representation of this BitLvalue's name.

getType

public Type getType()
Returns the base Type of this BitLvalue.

Specified by:
getType in class Lvalue
Returns:
the base Type of this BitLvalue.