Package ru.ispras.verilog.parser.model
Class VerilogShowCancelled
- 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.VerilogShowCancelled
-
public final class VerilogShowCancelled extends VerilogNode
VerilogShowCancelled
represents show-cancelled constructs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VerilogShowCancelled.Type
VerilogShowCancelled
contains the show-cancelled construct 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 VerilogShowCancelled(VerilogNode parent)
Creates a show-cancelled construct.VerilogShowCancelled(VerilogShowCancelled other, VerilogNode parent)
Creates a copy of the show-cancelled construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReference(VerilogReference reference)
Adds the reference to the show-cancelled construct.VerilogShowCancelled
clone()
Clones the symbol table.java.util.List<VerilogReference>
getReferences()
Returns the references of the show-cancelled construct.VerilogShowCancelled.Type
getType()
Returns the show-cancelled construct type (SHOW
orNO_SHOW
).boolean
isNoShow()
Checks whether the construct isNO_SHOW
.boolean
isShow()
Checks whether the construct isSHOW
.void
setNoShow()
Sets the construct type toNO_SHOW
.void
setShow()
Sets the construct type toSHOW
.void
setType(VerilogShowCancelled.Type type)
Sets the show-cancelled construct type (SHOW
orNO_SHOW
).-
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
-
VerilogShowCancelled
public VerilogShowCancelled(VerilogNode parent)
Creates a show-cancelled construct.- Parameters:
parent
- the parent node.
-
VerilogShowCancelled
public VerilogShowCancelled(VerilogShowCancelled other, VerilogNode parent)
Creates a copy of the show-cancelled construct.- Parameters:
other
- the show-cancelled construct to be copied.parent
- the parent node.
-
-
Method Detail
-
getType
public VerilogShowCancelled.Type getType()
Returns the show-cancelled construct type (SHOW
orNO_SHOW
).- Returns:
- the construct type.
-
setType
public void setType(VerilogShowCancelled.Type type)
Sets the show-cancelled construct type (SHOW
orNO_SHOW
).- Parameters:
type
- the type to be set.
-
isShow
public boolean isShow()
Checks whether the construct isSHOW
.- Returns:
true
iff the construct isSHOW
.
-
isNoShow
public boolean isNoShow()
Checks whether the construct isNO_SHOW
.- Returns:
true
iff the construct isNO_SHOW
.
-
setShow
public void setShow()
Sets the construct type toSHOW
.
-
setNoShow
public void setNoShow()
Sets the construct type toNO_SHOW
.
-
getReferences
public java.util.List<VerilogReference> getReferences()
Returns the references of the show-cancelled construct.- Returns:
- the list of references.
-
addReference
public void addReference(VerilogReference reference)
Adds the reference to the show-cancelled construct.- Parameters:
reference
- the reference to be added.
-
clone
public VerilogShowCancelled clone()
Description copied from class:AbstractSymbolTable
Clones the symbol table.- Specified by:
clone
in classVerilogNode
- Returns:
- a copy of the symbol table.
-
-