SFE.Compiler
Class StructFieldLvalue

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

public class StructFieldLvalue
extends Lvalue

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


Constructor Summary
StructFieldLvalue(Lvalue base, java.lang.String field)
          Constructs a new StructFieldLvalue from a given lvalue and fild name.
 
Method Summary
 java.lang.String getName()
          Returns the name of the lvalue of this object.
 Type getType()
          Returns the Type of this Lvalue object.
 boolean isOutput()
          Returns true is this variable is a part out the circuit's output.
 void notOutput()
          Sets this struct as not output of the circuit
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StructFieldLvalue

public StructFieldLvalue(Lvalue base,
                         java.lang.String field)
Constructs a new StructFieldLvalue from a given lvalue and fild name.

Parameters:
base - the type of the field
field - field name
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.

isOutput

public boolean isOutput()
Returns true is this variable is a part out the circuit's output.

Overrides:
isOutput in class Lvalue
Returns:
true is this variable is a part out the circuit's output.

notOutput

public void notOutput()
Sets this struct as not output of the circuit

Overrides:
notOutput in class Lvalue