Package ru.ispras.verilog.parser.model
Class VerilogActivity
- 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.VerilogActivity
-
public final class VerilogActivity extends VerilogNode
VerilogActivity
represents processes.There are the following process types:
always
(ordinary process);initial
(initial process).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VerilogActivity.Type
VerilogActivity.Type
contains the process 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 VerilogActivity(VerilogActivity other, VerilogNode parent)
Creates a copy of the process.VerilogActivity(VerilogNode parent)
Creates a process.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerilogActivity
clone()
Clones the symbol table.VerilogStatement
getStatement()
Returns the statement of the process.VerilogActivity.Type
getType()
Returns the type of the process.boolean
isAlways()
Checks whether the process type isALWAYS
.boolean
isInitial()
Checks whether the process type isINITIAL
.void
setAlways()
Sets the process type toALWAYS
.void
setInitial()
Sets the process type toINITIAL
.void
setStatement(VerilogStatement statement)
Sets the statement to the process.void
setType(VerilogActivity.Type type)
Sets the type of the process.-
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
-
VerilogActivity
public VerilogActivity(VerilogNode parent)
Creates a process.- Parameters:
parent
- the node parent.
-
VerilogActivity
public VerilogActivity(VerilogActivity other, VerilogNode parent)
Creates a copy of the process.- Parameters:
other
- the process to be copied.parent
- the parent node.
-
-
Method Detail
-
getType
public VerilogActivity.Type getType()
Returns the type of the process.- Returns:
- the process type:
ALWAYS
orINITIAL
.
-
setType
public void setType(VerilogActivity.Type type)
Sets the type of the process.- Parameters:
type
- the type to be set.
-
isAlways
public boolean isAlways()
Checks whether the process type isALWAYS
.- Returns:
true
iff the process type isALWAYS
.
-
isInitial
public boolean isInitial()
Checks whether the process type isINITIAL
.- Returns:
true
iff the process type isINITIAL
.
-
setAlways
public void setAlways()
Sets the process type toALWAYS
.
-
setInitial
public void setInitial()
Sets the process type toINITIAL
.
-
getStatement
public VerilogStatement getStatement()
Returns the statement of the process.- Returns:
- the process statement.
-
setStatement
public void setStatement(VerilogStatement statement)
Sets the statement to the process.- Parameters:
statement
- the statement to be set.
-
clone
public VerilogActivity clone()
Description copied from class:AbstractSymbolTable
Clones the symbol table.- Specified by:
clone
in classVerilogNode
- Returns:
- a copy of the symbol table.
-
-