Package nl.rrd.wool.model
Class WoolNodeBody.TextSegment
- java.lang.Object
-
- nl.rrd.wool.model.WoolNodeBody.Segment
-
- nl.rrd.wool.model.WoolNodeBody.TextSegment
-
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- WoolNodeBody
public static class WoolNodeBody.TextSegment extends WoolNodeBody.Segment
-
-
Constructor Summary
Constructors Constructor Description TextSegment(WoolNodeBody.TextSegment other)TextSegment(WoolVariableString text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WoolNodeBody.TextSegmentclone()Returns a deep copy of this segment.WoolReplyfindReplyById(int replyId)Tries to find a reply with the specified ID within this segment.voidgetReadVariableNames(Set<String> varNames)Retrieves all variable names that are read in this segment and adds them to the specified set.WoolVariableStringgetText()voidgetWriteVariableNames(Set<String> varNames)Retrieves all variable names that are written in this segment and adds them to the specified set.voidsetText(WoolVariableString text)StringtoString()
-
-
-
Constructor Detail
-
TextSegment
public TextSegment(WoolVariableString text)
-
TextSegment
public TextSegment(WoolNodeBody.TextSegment other)
-
-
Method Detail
-
getText
public WoolVariableString getText()
-
setText
public void setText(WoolVariableString text)
-
findReplyById
public WoolReply findReplyById(int replyId)
Description copied from class:WoolNodeBody.SegmentTries to find a reply with the specified ID within this segment. If no such reply is found, this method returns null.- Specified by:
findReplyByIdin classWoolNodeBody.Segment- Parameters:
replyId- the reply ID- Returns:
- the reply or null
-
getReadVariableNames
public void getReadVariableNames(Set<String> varNames)
Description copied from class:WoolNodeBody.SegmentRetrieves all variable names that are read in this segment and adds them to the specified set.- Specified by:
getReadVariableNamesin classWoolNodeBody.Segment- Parameters:
varNames- the set to which the variable names are added
-
getWriteVariableNames
public void getWriteVariableNames(Set<String> varNames)
Description copied from class:WoolNodeBody.SegmentRetrieves all variable names that are written in this segment and adds them to the specified set.- Specified by:
getWriteVariableNamesin classWoolNodeBody.Segment- Parameters:
varNames- the set to which the variable names are added
-
clone
public WoolNodeBody.TextSegment clone()
Description copied from class:WoolNodeBody.SegmentReturns a deep copy of this segment.- Specified by:
clonein classWoolNodeBody.Segment- Returns:
- a deep copy of this segment
-
-