@Test public void testExpand() { CompletionMetadata completionMetadata = CompletionMetadata.builder().setNodes(ImmutableSet.of("b1", "b2", "a1")).build(); String query = "/b/"; assertThat( getTestPIV(query, completionMetadata).run(), equalTo(new InputValidationNotes(Validity.VALID, ImmutableList.of("b1", "b2")))); }
private Set<String> expand(AstNode astNode) { if (astNode instanceof NodeAstNode) { return new ParboiledNodeSpecifier((NodeAstNode) astNode).resolve(_specifierContext); } return ImmutableSet.of(); }
ParboiledInputValidator { private Set<String> expand(AstNode astNode) { if (astNode instanceof NodeAstNode) { return new ParboiledNodeSpecifier((NodeAstNode) astNode).resolve(_specifierContext); } return ImmutableSet.of(); } }
ParboiledInputValidator { private Set<String> expand(AstNode astNode) { if (astNode instanceof NodeAstNode) { return new ParboiledNodeSpecifier((NodeAstNode) astNode).resolve(_specifierContext); } return ImmutableSet.of(); } ParboiledInputValidator(
      CommonParser parser,
      Grammar grammar,
      String query,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); private  ParboiledInputValidator(
      Rule inputRule,
      Grammar grammar,
      String query,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); }
ParboiledInputValidator { private Set<String> expand(AstNode astNode) { if (astNode instanceof NodeAstNode) { return new ParboiledNodeSpecifier((NodeAstNode) astNode).resolve(_specifierContext); } return ImmutableSet.of(); } ParboiledInputValidator(
      CommonParser parser,
      Grammar grammar,
      String query,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); private  ParboiledInputValidator(
      Rule inputRule,
      Grammar grammar,
      String query,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); static InputValidationNotes validate(
      Grammar grammar,
      String query,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); }
ParboiledInputValidator { private Set<String> expand(AstNode astNode) { if (astNode instanceof NodeAstNode) { return new ParboiledNodeSpecifier((NodeAstNode) astNode).resolve(_specifierContext); } return ImmutableSet.of(); } ParboiledInputValidator(
      CommonParser parser,
      Grammar grammar,
      String query,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); private  ParboiledInputValidator(
      Rule inputRule,
      Grammar grammar,
      String query,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); static InputValidationNotes validate(
      Grammar grammar,
      String query,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary);  }