- All Superinterfaces:
ASTNode,ContractNode
This represents a named behavior of the ACSL specification.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.civl.abc.ast.node.IF.ASTNode
ASTNode.NodeKindNested classes/interfaces inherited from interface dev.civl.abc.ast.node.IF.acsl.ContractNode
ContractNode.ContractKind -
Method Summary
Methods inherited from interface dev.civl.abc.ast.node.IF.ASTNode
addAllTransformAnnotations, addTransformAnnotation, child, childIndex, children, diff, equiv, getAttribute, getOwner, getScope, getSource, id, keepOnly, nextDFS, nodeKind, numChildren, parent, prettyPrint, prettyRepresentation, prettyRepresentation, print, remove, removeChild, removeTransformAnnotation, setAttribute, setChild, setId, setOwner, setScope, toString, transformAnnotationsMethods inherited from interface dev.civl.abc.ast.node.IF.acsl.ContractNode
contractKind
-
Method Details
-
getName
IdentifierNode getName()returns the name of this behavior- Returns:
- the name of this behavior
-
getBody
SequenceNode<ContractNode> getBody()returns the body of this behavior, which is a sequence of contract nodes- Returns:
- the body of this behavior
-
copy
BehaviorNode copy()Description copied from interface:ASTNodeReturns a deep copy of this AST node. The node and all of its descendants will be cloned. The cloning does not copy analysis or attribute information.- Specified by:
copyin interfaceASTNode- Specified by:
copyin interfaceContractNode- Returns:
- deep copy of this node
-