Package nl.rrd.wool.model
Class WoolNodeBody.Segment
- java.lang.Object
-
- nl.rrd.wool.model.WoolNodeBody.Segment
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
WoolNodeBody.CommandSegment,WoolNodeBody.TextSegment
- Enclosing class:
- WoolNodeBody
public abstract static class WoolNodeBody.Segment extends Object implements Cloneable
-
-
Constructor Summary
Constructors Constructor Description Segment()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract WoolNodeBody.Segmentclone()Returns a deep copy of this segment.abstract WoolReplyfindReplyById(int replyId)Tries to find a reply with the specified ID within this segment.abstract voidgetReadVariableNames(Set<String> varNames)Retrieves all variable names that are read in this segment and adds them to the specified set.abstract voidgetWriteVariableNames(Set<String> varNames)Retrieves all variable names that are written in this segment and adds them to the specified set.
-
-
-
Method Detail
-
findReplyById
public abstract WoolReply findReplyById(int replyId)
Tries to find a reply with the specified ID within this segment. If no such reply is found, this method returns null.- Parameters:
replyId- the reply ID- Returns:
- the reply or null
-
getReadVariableNames
public abstract void getReadVariableNames(Set<String> varNames)
Retrieves all variable names that are read in this segment and adds them to the specified set.- Parameters:
varNames- the set to which the variable names are added
-
getWriteVariableNames
public abstract void getWriteVariableNames(Set<String> varNames)
Retrieves all variable names that are written in this segment and adds them to the specified set.- Parameters:
varNames- the set to which the variable names are added
-
clone
public abstract WoolNodeBody.Segment clone()
Returns a deep copy of this segment.
-
-