Class VerilogPathItem
- java.lang.Object
-
- ru.ispras.verilog.parser.model.basis.VerilogPathItem
-
public final class VerilogPathItem extends java.lang.Object
VerilogPathItem
represents path items.
-
-
Constructor Summary
Constructors Constructor Description VerilogPathItem()
Creates a path item with no name.VerilogPathItem(java.lang.String name)
Creates a path item with the given instance name.VerilogPathItem(java.lang.String name, VerilogExpression expression)
Creates a path item with the given name and index.VerilogPathItem(VerilogPathItem other)
Creates a copy of the path item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerilogPathItem
clone()
VerilogExpression
getExpression()
Returns the instance index of the path item.java.lang.String
getName()
Returns the instance name of the path item.void
setExpression(VerilogExpression expression)
Sets the instance index of the path item.void
setName(java.lang.String name)
Sets the instance name of the path item.java.lang.String
toString()
-
-
-
Constructor Detail
-
VerilogPathItem
public VerilogPathItem()
Creates a path item with no name.
-
VerilogPathItem
public VerilogPathItem(java.lang.String name)
Creates a path item with the given instance name.- Parameters:
name
- the instance name.
-
VerilogPathItem
public VerilogPathItem(java.lang.String name, VerilogExpression expression)
Creates a path item with the given name and index.- Parameters:
name
- the instance name.expression
- the instance index.
-
VerilogPathItem
public VerilogPathItem(VerilogPathItem other)
Creates a copy of the path item.- Parameters:
other
- the path item to be copied.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the instance name of the path item.- Returns:
- the instance name.
-
setName
public void setName(java.lang.String name)
Sets the instance name of the path item.- Parameters:
name
- the instance name to be set.
-
getExpression
public VerilogExpression getExpression()
Returns the instance index of the path item.- Returns:
- the instance index.
-
setExpression
public void setExpression(VerilogExpression expression)
Sets the instance index of the path item.- Parameters:
expression
- the instance index to be set.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public VerilogPathItem clone()
- Overrides:
clone
in classjava.lang.Object
-
-