public List<String> localText(){
  final List<String> result=new ArrayList<String>();
  for (  Object child : this.children) {
    if (!(child instanceof Node)) {
      result.add(child.toString());
    }
  }
  return result;
}

public List < String > localText ( ) { final List < String > result = new ArrayList < String > ( ) ; for ( Object child : this . children ) { if ( ! ( child instanceof Node ) ) { result . add ( child . toString ( ) ) ; } } return result ; }
returns the list of any direct string nodes of this node .
