Package ru.ispras.verilog.parser.model
Class VerilogPulseStyle
- java.lang.Object
-
- ru.ispras.verilog.parser.core.AbstractSymbolTable<Tag>
-
- ru.ispras.verilog.parser.core.AbstractNode<VerilogNode.Tag>
-
- ru.ispras.verilog.parser.model.VerilogNode
-
- ru.ispras.verilog.parser.model.VerilogPulseStyle
-
public final class VerilogPulseStyle extends VerilogNode
VerilogPulseStyle
represents pulse style specifications.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VerilogPulseStyle.Type
VerilogPulseStyle
contains the pulse style types.-
Nested classes/interfaces inherited from class ru.ispras.verilog.parser.model.VerilogNode
VerilogNode.Tag
-
Nested classes/interfaces inherited from class ru.ispras.verilog.parser.core.AbstractNode
AbstractNode.NodeKind
-
-
Field Summary
Fields Modifier and Type Field Description static VerilogNode.Tag
TAG
static java.util.EnumSet<VerilogNode.Tag>
TAGS_CHILDREN
-
Constructor Summary
Constructors Constructor Description VerilogPulseStyle(VerilogNode parent)
Creates a pulse style specification.VerilogPulseStyle(VerilogPulseStyle other, VerilogNode parent)
Creates a copy of the pulse style specification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReference(VerilogReference reference)
Adds the reference to the pulse style specification.VerilogPulseStyle
clone()
Clones the symbol table.java.util.List<VerilogReference>
getReferences()
Returns the references of the pulse style specification.VerilogPulseStyle.Type
getType()
Returns the type of the pulse style specification.boolean
isOnDetect()
Checks whether the pulse style isON_DETECT
.boolean
isOnEvent()
Checks whether the pulse style isON_EVENT
.void
setOnDetect()
Sets a pulse style type toON_DETECT
.void
setOnEvent()
Sets a pulse style type toON_EVENT
.void
setType(VerilogPulseStyle.Type type)
Sets the type of the pulse style specification.-
Methods inherited from class ru.ispras.verilog.parser.model.VerilogNode
getAttributes, getParentNode, isActivity, isAssertionStatement, isAssign, isAssignment, isAssignStatement, isAttribute, isBlockGenerate, isBlockStatement, isCaseGenerate, isCaseGenerateItem, isCaseStatement, isCaseStatementItem, isCode, isConnection, isDeclaration, isDelayedStatement, isDisableStatement, isGenerate, isIfGenerate, isIfGenerateBranch, isIfStatement, isIfStatementBranch, isInstantiation, isLoopGenerate, isLoopStatement, isModule, isNullStatement, isPathDeclaration, isPort, isPortConnection, isProcedure, isPropertyDeclaration, isPulseStyle, isSequenceDeclaration, isShowCancelled, isSpecify, isSvaPort, isTable, isTableEntry, isTaskStatement, isTriggerStatement, isWaitStatement, setAttributes, union
-
Methods inherited from class ru.ispras.verilog.parser.core.AbstractNode
add, find, getFullName, getName, getParent, getTag, hasName, hasScope, isTransparent, items, items, items, remove, replace, setName, setParent, setRedefinitionHandler, setTag, toString
-
Methods inherited from class ru.ispras.verilog.parser.core.AbstractSymbolTable
addAll, findAroundRecursively, findAroundRecursively, findRecursively, findRecursively, getUpperTable, items, items, setUpperTable
-
-
-
-
Field Detail
-
TAG
public static final VerilogNode.Tag TAG
-
TAGS_CHILDREN
public static final java.util.EnumSet<VerilogNode.Tag> TAGS_CHILDREN
-
-
Constructor Detail
-
VerilogPulseStyle
public VerilogPulseStyle(VerilogNode parent)
Creates a pulse style specification.- Parameters:
parent
- the parent node.
-
VerilogPulseStyle
public VerilogPulseStyle(VerilogPulseStyle other, VerilogNode parent)
Creates a copy of the pulse style specification.- Parameters:
other
- the pulse style specification to be copied.parent
- the parent node.
-
-
Method Detail
-
getType
public VerilogPulseStyle.Type getType()
Returns the type of the pulse style specification.- Returns:
- the pulse style type.
-
setType
public void setType(VerilogPulseStyle.Type type)
Sets the type of the pulse style specification.- Parameters:
type
- the type to be set.
-
isOnEvent
public boolean isOnEvent()
Checks whether the pulse style isON_EVENT
.- Returns:
true
iff the pulse style isON_EVENT
.
-
isOnDetect
public boolean isOnDetect()
Checks whether the pulse style isON_DETECT
.- Returns:
true
iff the pulse style isON_DETECT
.
-
setOnEvent
public void setOnEvent()
Sets a pulse style type toON_EVENT
.
-
setOnDetect
public void setOnDetect()
Sets a pulse style type toON_DETECT
.
-
getReferences
public java.util.List<VerilogReference> getReferences()
Returns the references of the pulse style specification.- Returns:
- the list of references.
-
addReference
public void addReference(VerilogReference reference)
Adds the reference to the pulse style specification.- Parameters:
reference
- the reference to be added.
-
clone
public VerilogPulseStyle clone()
Description copied from class:AbstractSymbolTable
Clones the symbol table.- Specified by:
clone
in classVerilogNode
- Returns:
- a copy of the symbol table.
-
-