Package ru.ispras.verilog.parser.util
Class IndexOutOfBoundStructure
- java.lang.Object
-
- ru.ispras.verilog.parser.util.IndexOutOfBoundStructure
-
public class IndexOutOfBoundStructure extends java.lang.Object
This class is used byVerilogTransformerVariableSubstitute
save information about indexes which is out of bound in Verilog bit vector.
-
-
Constructor Summary
Constructors Constructor Description IndexOutOfBoundStructure(int index, ru.ispras.fortress.expression.Node vector, int upperBound, int lowerBound)
All arg constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Method returns is this object equal to another object.java.lang.String
toString()
Returns error message with description which index is out of bound.
-
-
-
Constructor Detail
-
IndexOutOfBoundStructure
public IndexOutOfBoundStructure(int index, ru.ispras.fortress.expression.Node vector, int upperBound, int lowerBound)
All arg constructor.- Parameters:
index
- index value that is out of boundvector
- Verilog bit vector used to identify the nameupperBound
- upper bound of the bit vectorlowerBound
- lower bound of the bit vector
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
Method returns is this object equal to another object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- object that will be checked- Returns:
- true if object is equal false if not
-
toString
public java.lang.String toString()
Returns error message with description which index is out of bound.- Overrides:
toString
in classjava.lang.Object
- Returns:
- error message
-
-