Class VerilogPathDescription
- java.lang.Object
-
- ru.ispras.verilog.parser.model.basis.VerilogPathDescription
-
public final class VerilogPathDescription extends java.lang.Object
VerilogPathDescription
represents path descriptions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VerilogPathDescription.Polarity
VerilogPathDescription.Polarity
contains the polarity types.static class
VerilogPathDescription.Type
VerilogPathDescription.Type
contains the path description types.
-
Constructor Summary
Constructors Constructor Description VerilogPathDescription()
Creates a path description.VerilogPathDescription(VerilogPathDescription other)
Creates a copy of the path description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInput(VerilogReference input)
Adds the reference to the source references.void
addOutput(VerilogReference output)
Adds the reference to the destination references.VerilogPathDescription
clone()
VerilogEdge
getEdge()
Returns the edge type of the path description.VerilogExpression
getExpression()
Returns the data source expression of the path description.java.util.List<VerilogReference>
getInputs()
Returns the source references of the path description.java.util.List<VerilogReference>
getOutputs()
Returns the destination references of the path description.VerilogPathDescription.Polarity
getPolarity()
Returns the polarity of the path description.VerilogPathDescription.Type
getType()
Returns the type of the path description.boolean
isFull()
Checks whether the path description isFULL
.boolean
isMinus()
Checks whether the polarity isMINUS
.boolean
isParallel()
Checks whether the path description isPARALLEL
.boolean
isPlus()
Checks whether the polarity isPLUS
.void
setEdge(VerilogEdge edge)
Sets the edge type of the path description.void
setExpression(VerilogExpression expression)
Sets the data source expression of the path description.void
setFull()
Sets the path description type toFULL
.void
setMinus()
Sets the path description polarity toMINUS
.void
setParallel()
Sets the path description type toPARALLEL
.void
setPlus()
Sets the path description polarity toPLUS
.void
setPolarity(VerilogPathDescription.Polarity polarity)
Sets the polarity of the path description.void
setType(VerilogPathDescription.Type type)
Sets the type of the path description.java.lang.String
toString()
-
-
-
Constructor Detail
-
VerilogPathDescription
public VerilogPathDescription()
Creates a path description.
-
VerilogPathDescription
public VerilogPathDescription(VerilogPathDescription other)
Creates a copy of the path description.- Parameters:
other
- the path description to be copied.
-
-
Method Detail
-
getType
public VerilogPathDescription.Type getType()
Returns the type of the path description.- Returns:
- the path description type.
-
setType
public void setType(VerilogPathDescription.Type type)
Sets the type of the path description.- Parameters:
type
- the type to be set.
-
isParallel
public boolean isParallel()
Checks whether the path description isPARALLEL
.- Returns:
true
iff the path descriptionPARALLEL
.
-
isFull
public boolean isFull()
Checks whether the path description isFULL
.- Returns:
true
iff the path description isFULL
.
-
setParallel
public void setParallel()
Sets the path description type toPARALLEL
.
-
setFull
public void setFull()
Sets the path description type toFULL
.
-
getPolarity
public VerilogPathDescription.Polarity getPolarity()
Returns the polarity of the path description.- Returns:
- the path description polarity.
-
setPolarity
public void setPolarity(VerilogPathDescription.Polarity polarity)
Sets the polarity of the path description.- Parameters:
polarity
- the polarity to be set.
-
isPlus
public boolean isPlus()
Checks whether the polarity isPLUS
.- Returns:
true
iff the polarity isPLUS
.
-
isMinus
public boolean isMinus()
Checks whether the polarity isMINUS
.- Returns:
true
if the polarity isMINUS
.
-
setPlus
public void setPlus()
Sets the path description polarity toPLUS
.
-
setMinus
public void setMinus()
Sets the path description polarity toMINUS
.
-
getEdge
public VerilogEdge getEdge()
Returns the edge type of the path description.- Returns:
- the path description edge.
-
setEdge
public void setEdge(VerilogEdge edge)
Sets the edge type of the path description.- Parameters:
edge
- the edge type to be set.
-
getInputs
public java.util.List<VerilogReference> getInputs()
Returns the source references of the path description.- Returns:
- the source references.
-
addInput
public void addInput(VerilogReference input)
Adds the reference to the source references.- Parameters:
input
- the reference to be added.
-
getOutputs
public java.util.List<VerilogReference> getOutputs()
Returns the destination references of the path description.- Returns:
- the destination references.
-
addOutput
public void addOutput(VerilogReference output)
Adds the reference to the destination references.- Parameters:
output
- the reference to be added.
-
getExpression
public VerilogExpression getExpression()
Returns the data source expression of the path description.- Returns:
- the data source expression.
-
setExpression
public void setExpression(VerilogExpression expression)
Sets the data source expression of the path description.- Parameters:
expression
- the expression to be set.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public VerilogPathDescription clone()
- Overrides:
clone
in classjava.lang.Object
-
-