@Override
	public String getText() {
		if (getChildCount() == 0) {
			return "";
		}

		StringBuilder builder = new StringBuilder();
		for (int i = 0; i < getChildCount(); i++) {
			builder.append(getChild(i).getText());
		}

		return builder.toString();
	}
Return the combined text of all child nodes. This method only considers
 tokens which have been added to the parse tree.
 <p>
 Since tokens on hidden channels (e.g. whitespace or comments) are not
 added to the parse trees, they will not appear in the output of this
 method.
runtime/Java/src/org/antlr/v4/runtime/RuleContext.java