SFE.Compiler
Class ArrayEntryLvalue

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

public class ArrayEntryLvalue
extends Lvalue

ArrayEntryLvalue represent as array entry l-value that can be defined in a program. The ArrayEntryLvalue class extends the Lvalue class.


Constructor Summary
ArrayEntryLvalue(Lvalue array, int index)
          Constructs a new ArrayEntryLvalue from a given lvalue and index in the array.
 
Method Summary
 java.lang.String getName()
          Returns the name of the this ArrayEntryLvalue.
 Type getType()
          Returns the Type of this LArrayEntryLvalue object.
 boolean isOutput()
          Returns true is this ArrayEntryLvalue is a part out the circuit's output.
 void notOutput()
          Marks this ArrayEntryLvalue's pin as not output.
 int size()
          Returns the size of this ArrayEntryLvalue object in bits.
 java.lang.String toString()
          Returns a string representation of this ArrayEntryLvalue.
 
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

ArrayEntryLvalue

public ArrayEntryLvalue(Lvalue array,
                        int index)
Constructs a new ArrayEntryLvalue from a given lvalue and index in the array.

Parameters:
array - the array's l-value.
index - the index of this ArrayEntryLvalue in the array.
Method Detail

getType

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

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

size

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

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

getName

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

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

toString

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

Overrides:
toString in class java.lang.Object

isOutput

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

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

notOutput

public void notOutput()
Marks this ArrayEntryLvalue's pin as not output. This ArrayEntryLvalue is not an output pin the the result circuit.

Overrides:
notOutput in class Lvalue