1 package jfun.yan.xml; 2 3 import java.util.Collections ; 4 import java.util.List ; 5 6 final class CharacterData extends Node { 7 private final String text; 8 9 CharacterData(Location loc, String text) { 10 super(loc); 11 this.text = text; 12 } 13 14 public List getSubNodes() { 15 return Collections.EMPTY_LIST; 16 } 17 18 public String getText() { 19 return text; 20 } 21 public String toString(){ 22 return text; 23 } 24 } 25 | Popular Tags |