@Test public void expectStringNodeAcceptsErrorMessage() { Node node = Node.from(""); assertSame(node, node.expectStringNode("does not raise")); }
@Override public StringNode expectStringNode(String errorMessage) { return this; }
StringNode extends Node { @Override public StringNode expectStringNode(String errorMessage) { return this; } }
StringNode extends Node { @Override public StringNode expectStringNode(String errorMessage) { return this; } StringNode(String value, SourceLocation sourceLocation); }
StringNode extends Node { @Override public StringNode expectStringNode(String errorMessage) { return this; } StringNode(String value, SourceLocation sourceLocation); @SmithyInternalApi static Pair<StringNode, Consumer<String>> createLazyString(
            String placeholder, SourceLocation sourceLocation); @Override NodeType getType(); @Override R accept(NodeVisitor<R> visitor); @Override StringNode expectStringNode(String errorMessage); @Override Optional<StringNode> asStringNode(); String getValue(); String expectOneOf(String... validValues); String expectOneOf(Collection<String> validValues); ShapeId expectShapeId(String namespace); ShapeId expectShapeId(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
StringNode extends Node { @Override public StringNode expectStringNode(String errorMessage) { return this; } StringNode(String value, SourceLocation sourceLocation); @SmithyInternalApi static Pair<StringNode, Consumer<String>> createLazyString(
            String placeholder, SourceLocation sourceLocation); @Override NodeType getType(); @Override R accept(NodeVisitor<R> visitor); @Override StringNode expectStringNode(String errorMessage); @Override Optional<StringNode> asStringNode(); String getValue(); String expectOneOf(String... validValues); String expectOneOf(Collection<String> validValues); ShapeId expectShapeId(String namespace); ShapeId expectShapeId(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }