1 package org.catacomb.druid.xtext.base; 2 3 4 5 public class NewlineBlock extends TextBlock { 6 7 8 public NewlineBlock() { 9 super(); 10 } 11 12 13 public TextBlock makeCopy() { 14 return new NewlineBlock(); 15 } 16 17 18 public int textLength() { 19 return 1; 20 } 21 22 23 public boolean matches(TextBlock tb) { 24 return (tb instanceof NewlineBlock); 25 } 26 27 28 29 30 }