示例#1
0
 /**
  * Creates a new object with the same primitive data, and recursively creates new member data
  * objects as well.
  *
  * @return The clone node.
  */
 public Object clone() {
   return new SwitchBlock((SwitchGroupList) groups.clone(), (SwitchLabelList) labels.clone());
 }
示例#2
0
 /**
  * Writes a string representation of this <code>ASTNode</code> to the specified buffer. The
  * representation written is parsable by the LBJ2 compiler, but not very readable.
  *
  * @param buffer The buffer to write to.
  */
 public void write(StringBuffer buffer) {
   groups.write(buffer);
   buffer.append(" ");
   labels.write(buffer);
 }