Class VerilogMinTypMax
- java.lang.Object
-
- ru.ispras.verilog.parser.model.basis.VerilogMinTypMax
-
public final class VerilogMinTypMax extends java.lang.Object
VerilogMinTypMax
represents the min:typ:max expressions.
-
-
Constructor Summary
Constructors Constructor Description VerilogMinTypMax()
Creates a min:typ:max expression.VerilogMinTypMax(VerilogExpression expression)
Creates a min:typ:max expression.VerilogMinTypMax(VerilogMinTypMax other)
Creates a copy of the min:typ:max expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerilogMinTypMax
clone()
java.util.List<VerilogAttribute>
getAttributes()
Returns the expression attributes.VerilogExpression
getMaxExpression()
Returns the maximal value expression.VerilogExpression
getMinExpression()
Returns the minimal value expression.VerilogExpression
getTypExpression()
Returns the typical value expression.boolean
isUsual()
Checks whether the expression is usual.void
setAttributes(java.util.List<VerilogAttribute> attributes)
Sets the expression attributes.void
setMaxExpression(VerilogExpression max)
Sets the maximal value expression.void
setMinExpression(VerilogExpression min)
Sets the minimal value expression.void
setMinTypMaxExpression(VerilogMinTypMax other)
Set the minimal, the typical, and the maximal expressions.void
setTypExpression(VerilogExpression typ)
Sets the typical value expression.java.lang.String
toString()
-
-
-
Constructor Detail
-
VerilogMinTypMax
public VerilogMinTypMax()
Creates a min:typ:max expression.
-
VerilogMinTypMax
public VerilogMinTypMax(VerilogExpression expression)
Creates a min:typ:max expression.- Parameters:
expression
- the usual expression.
-
VerilogMinTypMax
public VerilogMinTypMax(VerilogMinTypMax other)
Creates a copy of the min:typ:max expression.- Parameters:
other
- the expression to be copied.
-
-
Method Detail
-
isUsual
public boolean isUsual()
Checks whether the expression is usual.- Returns:
true
iff the expression is usual.
-
getMinExpression
public VerilogExpression getMinExpression()
Returns the minimal value expression.- Returns:
- the minimal value expression.
-
setMinExpression
public void setMinExpression(VerilogExpression min)
Sets the minimal value expression.- Parameters:
min
- the expression to be set.
-
getTypExpression
public VerilogExpression getTypExpression()
Returns the typical value expression.- Returns:
- the typical value expression.
-
setTypExpression
public void setTypExpression(VerilogExpression typ)
Sets the typical value expression.- Parameters:
typ
- the expression to be set.
-
setMinTypMaxExpression
public void setMinTypMaxExpression(VerilogMinTypMax other)
Set the minimal, the typical, and the maximal expressions.- Parameters:
other
- the min:typ:max expression to be set.
-
getMaxExpression
public VerilogExpression getMaxExpression()
Returns the maximal value expression.- Returns:
- the maximal value expression.
-
setMaxExpression
public void setMaxExpression(VerilogExpression max)
Sets the maximal value expression.- Parameters:
max
- the expression to be set.
-
getAttributes
public java.util.List<VerilogAttribute> getAttributes()
Returns the expression attributes.- Returns:
- the attributes.
-
setAttributes
public void setAttributes(java.util.List<VerilogAttribute> attributes)
Sets the expression attributes.- Parameters:
attributes
- the attributes to be set.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public VerilogMinTypMax clone()
- Overrides:
clone
in classjava.lang.Object
-
-