Class VerilogEventControl
- java.lang.Object
-
- ru.ispras.verilog.parser.model.basis.VerilogEventControl
-
public final class VerilogEventControl extends java.lang.Object
VerilogEventControl
represents event control constructs.
-
-
Constructor Summary
Constructors Constructor Description VerilogEventControl()
Creates an event control.VerilogEventControl(VerilogEventControl other)
Creates a copy of the event control.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerilogEventControl
clone()
VerilogDelay
getDelay()
Returns the delay of the delay-based control.java.util.List<VerilogEvent>
getEvents()
Returns the events of the event-based control.VerilogExpression
getRepeat()
Returns the repetition number of the event-based control.boolean
isDelays()
Checks whether the control is delay-based.boolean
isEmpty()
Checks whether the control is absent.boolean
isEvents()
Checks whether the control is event-based.boolean
isRepeat()
Checks whether the control is event-based and has the repeat construct.void
setDelay(VerilogDelay delay)
Sets the delay of the delay-based control.void
setEvents(java.util.List<VerilogEvent> events)
Sets the events of the event-based control.void
setRepeat(VerilogExpression repeat)
Sets the number of repetitions of the event-based control.void
setRepeatEvents(VerilogRepeatEvents repeatEvents)
Sets the number of repetitions and the events of the event-based control.java.lang.String
toString()
-
-
-
Constructor Detail
-
VerilogEventControl
public VerilogEventControl()
Creates an event control.
-
VerilogEventControl
public VerilogEventControl(VerilogEventControl other)
Creates a copy of the event control.- Parameters:
other
- the event control to be copied.
-
-
Method Detail
-
isDelays
public boolean isDelays()
Checks whether the control is delay-based.- Returns:
true
iff the control is delay-based.
-
isEvents
public boolean isEvents()
Checks whether the control is event-based.- Returns:
true
iff the control is event-based.
-
isRepeat
public boolean isRepeat()
Checks whether the control is event-based and has the repeat construct.- Returns:
true
iff the control is event-based and has the repeat construct.
-
isEmpty
public boolean isEmpty()
Checks whether the control is absent.- Returns:
true
iff the control is absent.
-
getDelay
public VerilogDelay getDelay()
Returns the delay of the delay-based control.- Returns:
- the delay.
-
setDelay
public void setDelay(VerilogDelay delay)
Sets the delay of the delay-based control.- Parameters:
delay
- the delay to be set.
-
getEvents
public java.util.List<VerilogEvent> getEvents()
Returns the events of the event-based control.- Returns:
- the events.
-
setEvents
public void setEvents(java.util.List<VerilogEvent> events)
Sets the events of the event-based control.- Parameters:
events
- the events to be set.
-
getRepeat
public VerilogExpression getRepeat()
Returns the repetition number of the event-based control.- Returns:
- the repetition number.
-
setRepeat
public void setRepeat(VerilogExpression repeat)
Sets the number of repetitions of the event-based control.- Parameters:
repeat
- the repetition number to be set.
-
setRepeatEvents
public void setRepeatEvents(VerilogRepeatEvents repeatEvents)
Sets the number of repetitions and the events of the event-based control.- Parameters:
repeatEvents
- the repeat events construct.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public VerilogEventControl clone()
- Overrides:
clone
in classjava.lang.Object
-
-