Class VerilogPath
- java.lang.Object
-
- ru.ispras.verilog.parser.model.basis.VerilogPath
-
public final class VerilogPath extends java.lang.Object
VerilogPath
represents paths.
-
-
Constructor Summary
Constructors Constructor Description VerilogPath()
Creates an empty path.VerilogPath(VerilogPath other)
Creates a copy of the path.VerilogPath(VerilogPathItem item)
Creates a path consisting of one path item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(VerilogPathItem item)
Adds an item to the path.VerilogPath
clone()
java.util.List<VerilogPathItem>
getPath()
Returns the list of path items.VerilogPathItem
getPathItem()
Return the first path item of the path.boolean
isHierarchical()
Checks whether the path is hierarchical.java.lang.String
toString()
-
-
-
Constructor Detail
-
VerilogPath
public VerilogPath()
Creates an empty path.
-
VerilogPath
public VerilogPath(VerilogPathItem item)
Creates a path consisting of one path item.- Parameters:
item
- the path item.
-
VerilogPath
public VerilogPath(VerilogPath other)
Creates a copy of the path.- Parameters:
other
- the path to be copied.
-
-
Method Detail
-
isHierarchical
public boolean isHierarchical()
Checks whether the path is hierarchical.- Returns:
true
iff the path is hierarchical.
-
getPath
public java.util.List<VerilogPathItem> getPath()
Returns the list of path items.- Returns:
- the list of path items.
-
getPathItem
public VerilogPathItem getPathItem()
Return the first path item of the path.- Returns:
- the first path item.
-
addItem
public void addItem(VerilogPathItem item)
Adds an item to the path.- Parameters:
item
- the item to be added.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public VerilogPath clone()
- Overrides:
clone
in classjava.lang.Object
-
-