public class LabelMessage extends Message
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Deque<java.lang.Integer> |
labelStack |
DEFAULT_MESSAGE_LENGTH| Constructor and Description |
|---|
LabelMessage(long length,
int label) |
| Modifier and Type | Method and Description |
|---|---|
int |
current() |
int |
getLabel() |
int |
getNumberOfLabels() |
boolean |
hasLabel() |
int |
pop() |
void |
printHeader(java.io.PrintWriter out) |
void |
push(int label) |
void |
setLabel(int label) |
getLength, printContent, printMessage, setLengthpublic boolean hasLabel()
public int getNumberOfLabels()
public void printHeader(java.io.PrintWriter out)
printHeader in class Messagepublic void push(int label)
public int current()
public int pop()
public int getLabel()
public void setLabel(int label)