Package ru.ispras.verilog.parser.model
Class VerilogTaskStatement
- 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.VerilogStatement
-
- ru.ispras.verilog.parser.model.VerilogTaskStatement
-
public final class VerilogTaskStatement extends VerilogStatement
VerilogTaskStatement
represents task statements.
-
-
Nested Class Summary
-
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
-
Fields inherited from class ru.ispras.verilog.parser.model.VerilogStatement
TAGS
-
-
Constructor Summary
Constructors Constructor Description VerilogTaskStatement(VerilogNode parent)
Creates a task statement.VerilogTaskStatement(VerilogTaskStatement other, VerilogNode parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgument(VerilogExpression argument)
Adds the argument to the task statement.VerilogTaskStatement
clone()
Clones the symbol table.java.util.List<VerilogExpression>
getArguments()
Returns the arguments of the task statement.VerilogProcedure
getDeclaration()
Returns the task declaration.VerilogPath
getPath()
Returns the path to the task.void
setDeclaration(VerilogProcedure declaration)
Sets the task declaration.void
setPath(VerilogPath path)
Sets the path of the task.-
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
-
VerilogTaskStatement
public VerilogTaskStatement(VerilogNode parent)
Creates a task statement.- Parameters:
parent
- the parent node.
-
VerilogTaskStatement
public VerilogTaskStatement(VerilogTaskStatement other, VerilogNode parent)
-
-
Method Detail
-
getPath
public VerilogPath getPath()
Returns the path to the task.- Returns:
- the task path.
-
setPath
public void setPath(VerilogPath path)
Sets the path of the task.- Parameters:
path
- the path to be set.
-
getArguments
public java.util.List<VerilogExpression> getArguments()
Returns the arguments of the task statement.- Returns:
- the arguments.
-
addArgument
public void addArgument(VerilogExpression argument)
Adds the argument to the task statement.- Parameters:
argument
- the argument to be added.
-
getDeclaration
public VerilogProcedure getDeclaration()
Returns the task declaration.- Returns:
- the task declaration.
-
setDeclaration
public void setDeclaration(VerilogProcedure declaration)
Sets the task declaration.- Parameters:
declaration
- the task declaration to be set.
-
clone
public VerilogTaskStatement clone()
Description copied from class:AbstractSymbolTable
Clones the symbol table.- Specified by:
clone
in classVerilogStatement
- Returns:
- a copy of the symbol table.
-
-