MCPcopy Index your code
hub / github.com/apache/groovy / localText

Method localText

src/main/java/groovy/util/Node.java:777–786  ·  view source on GitHub ↗

Returns the list of any direct String nodes of this node. @return the list of String values from this node @since 2.3.0

()

Source from the content-addressed store, hash-verified

775 * @since 2.3.0
776 */
777 public List<String> localText() {
778 List<String> answer = new ArrayList<String>();
779 for (Iterator iter = InvokerHelper.asIterator(value); iter.hasNext(); ) {
780 Object child = iter.next();
781 if (!(child instanceof Node)) {
782 answer.add(child.toString());
783 }
784 }
785 return answer;
786 }
787
788 private List getDirectChildren() {
789 List answer = new NodeList();

Callers

nothing calls this directly

Calls 5

asIteratorMethod · 0.95
addMethod · 0.65
toStringMethod · 0.65
hasNextMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected