test_class.file: meta/src/test/java/org/jboss/hal/meta/AddressTemplateTest.java
test_class.identifier: AddressTemplateTest
test_case.body: @Test
      public void replaceWildcards() {
          AddressTemplate at = AddressTemplate.of("a=b");
          at = at.replaceWildcards(null);
          assertEquals("a=b", at.getTemplate());
  
          at = AddressTemplate.of("a=b");
          at = at.replaceWildcards(null, (String[]) null);
          assertEquals("a=b", at.getTemplate());
  
          at = AddressTemplate.of("a=b");
          at = at.replaceWildcards("foo");
          assertEquals("a=b", at.getTemplate());
  
          at = AddressTemplate.of("{a}/b={c}");
          at = at.replaceWildcards("foo");
          assertEquals("{a}/b={c}", at.getTemplate());
  
          at = AddressTemplate.of("a=*/c=*");
          at = at.replaceWildcards("b");
          assertEquals("a=b/c=*", at.getTemplate());
  
          at = AddressTemplate.of("a=*/c=*");
          at = at.replaceWildcards("b", (String[]) null);
          assertEquals("a=b/c=*", at.getTemplate());
  
          at = AddressTemplate.of("a=*/c=*");
          at = at.replaceWildcards("b", "d");
          assertEquals("a=b/c=d", at.getTemplate());
  
          at = AddressTemplate.of("a=*/c=*");
          at = at.replaceWildcards("b", "d", "foo");
          assertEquals("a=b/c=d", at.getTemplate());
  
          at = AddressTemplate.of("a=*/c={d}");
          at = at.replaceWildcards("b", "d", "foo");
          assertEquals("a=b/c={d}", at.getTemplate());
      }
test_case.class_method_signature: AddressTemplateTest.replaceWildcards()
test_case.full_signature: @Test public void replaceWildcards()
test_case.identifier: replaceWildcards
test_case.invocations: of replaceWildcards assertEquals getTemplate of replaceWildcards assertEquals getTemplate of replaceWildcards assertEquals getTemplate of replaceWildcards assertEquals getTemplate of replaceWildcards assertEquals getTemplate of replaceWildcards assertEquals getTemplate of replaceWildcards assertEquals getTemplate of replaceWildcards assertEquals getTemplate of replaceWildcards assertEquals getTemplate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void replaceWildcards()
focal_class.declarator: ROOT = AddressTemplate.of("/")
focal_class.modifier: public static final
focal_class.original_string: public static final AddressTemplate ROOT = AddressTemplate.of("/");
focal_class.type: AddressTemplate
focal_class.var_name: ROOT
focal_class.declarator: EQUALS = "="
focal_class.modifier: public static final
focal_class.original_string: public static final String EQUALS = "=";
focal_class.type: String
focal_class.var_name: EQUALS
focal_class.declarator: OPTIONAL = "opt://"
focal_class.modifier: @JsIgnore public static final
focal_class.original_string: @JsIgnore public static final String OPTIONAL = "opt://";
focal_class.type: String
focal_class.var_name: OPTIONAL
focal_class.declarator: BLANK = "_blank"
focal_class.modifier: private static final
focal_class.original_string: private static final String BLANK = "_blank";
focal_class.type: String
focal_class.var_name: BLANK
focal_class.declarator: template
focal_class.modifier: private final
focal_class.original_string: private final String template;
focal_class.type: String
focal_class.var_name: template
focal_class.declarator: tokens
focal_class.modifier: private final
focal_class.original_string: private final LinkedList<Token> tokens;
focal_class.type: LinkedList<Token>
focal_class.var_name: tokens
focal_class.declarator: optional
focal_class.modifier: private final
focal_class.original_string: private final boolean optional;
focal_class.type: boolean
focal_class.var_name: optional
focal_class.file: meta/src/main/java/org/jboss/hal/meta/AddressTemplate.java
focal_class.identifier: AddressTemplate
focal_class.interfaces: implements Iterable<String>
focal_class.class_method_signature: AddressTemplate.of(StatementContext.Expression placeholder)
focal_class.full_signature: @JsIgnore public static AddressTemplate of(StatementContext.Expression placeholder)
focal_class.identifier: of
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (StatementContext.Expression placeholder)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate of(StatementContext.Expression placeholder)
focal_class.class_method_signature: AddressTemplate.of(StatementContext.Expression placeholder, String template)
focal_class.full_signature: @JsIgnore public static AddressTemplate of(StatementContext.Expression placeholder, String template)
focal_class.identifier: of
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (StatementContext.Expression placeholder, String template)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate of(StatementContext.Expression placeholder, String template)
focal_class.class_method_signature: AddressTemplate.of(StatementContext.Expression placeholder1,
              StatementContext.Expression placeholder2)
focal_class.full_signature: @JsIgnore public static AddressTemplate of(StatementContext.Expression placeholder1,
              StatementContext.Expression placeholder2)
focal_class.identifier: of
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (StatementContext.Expression placeholder1,
              StatementContext.Expression placeholder2)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate of(StatementContext.Expression placeholder1,
              StatementContext.Expression placeholder2)
focal_class.class_method_signature: AddressTemplate.of(StatementContext.Expression placeholder1, StatementContext.Expression placeholder2,
              String template)
focal_class.full_signature: @JsIgnore public static AddressTemplate of(StatementContext.Expression placeholder1, StatementContext.Expression placeholder2,
              String template)
focal_class.identifier: of
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (StatementContext.Expression placeholder1, StatementContext.Expression placeholder2,
              String template)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate of(StatementContext.Expression placeholder1, StatementContext.Expression placeholder2,
              String template)
focal_class.class_method_signature: AddressTemplate.of(String template)
focal_class.full_signature: public static AddressTemplate of(String template)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (String template)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate of(String template)
focal_class.class_method_signature: AddressTemplate.of(ResourceAddress address)
focal_class.full_signature: @JsIgnore public static AddressTemplate of(ResourceAddress address)
focal_class.identifier: of
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (ResourceAddress address)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate of(ResourceAddress address)
focal_class.class_method_signature: AddressTemplate.of(ResourceAddress address, Unresolver unresolver)
focal_class.full_signature: @JsIgnore public static AddressTemplate of(ResourceAddress address, Unresolver unresolver)
focal_class.identifier: of
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (ResourceAddress address, Unresolver unresolver)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate of(ResourceAddress address, Unresolver unresolver)
focal_class.class_method_signature: AddressTemplate.withoutSlash(String template)
focal_class.full_signature: private static String withoutSlash(String template)
focal_class.identifier: withoutSlash
focal_class.modifiers: private static
focal_class.parameters: (String template)
focal_class.return: String
focal_class.signature: String withoutSlash(String template)
focal_class.class_method_signature: AddressTemplate.withSlash(String template)
focal_class.full_signature: private static String withSlash(String template)
focal_class.identifier: withSlash
focal_class.modifiers: private static
focal_class.parameters: (String template)
focal_class.return: String
focal_class.signature: String withSlash(String template)
focal_class.class_method_signature: AddressTemplate.AddressTemplate(String template)
focal_class.full_signature: private  AddressTemplate(String template)
focal_class.identifier: AddressTemplate
focal_class.modifiers: private
focal_class.parameters: (String template)
focal_class.signature:  AddressTemplate(String template)
focal_class.class_method_signature: AddressTemplate.parse(String template)
focal_class.full_signature: private LinkedList<Token> parse(String template)
focal_class.identifier: parse
focal_class.modifiers: private
focal_class.parameters: (String template)
focal_class.return: LinkedList<Token>
focal_class.signature: LinkedList<Token> parse(String template)
focal_class.class_method_signature: AddressTemplate.join(boolean optional, List<Token> tokens)
focal_class.full_signature: private String join(boolean optional, List<Token> tokens)
focal_class.identifier: join
focal_class.modifiers: private
focal_class.parameters: (boolean optional, List<Token> tokens)
focal_class.return: String
focal_class.signature: String join(boolean optional, List<Token> tokens)
focal_class.class_method_signature: AddressTemplate.equals(Object o)
focal_class.full_signature: @Override @JsIgnore public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override @JsIgnore public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: AddressTemplate.hashCode()
focal_class.full_signature: @Override @JsIgnore public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override @JsIgnore public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: AddressTemplate.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: AddressTemplate.isEmpty()
focal_class.full_signature: @JsProperty public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: @JsProperty public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: AddressTemplate.size()
focal_class.full_signature: @JsProperty(name = "size") public int size()
focal_class.identifier: size
focal_class.modifiers: @JsProperty(name = "size") public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: AddressTemplate.iterator()
focal_class.full_signature: @Override @JsIgnore public Iterator<String> iterator()
focal_class.identifier: iterator
focal_class.modifiers: @Override @JsIgnore public
focal_class.parameters: ()
focal_class.return: Iterator<String>
focal_class.signature: Iterator<String> iterator()
focal_class.class_method_signature: AddressTemplate.append(String template)
focal_class.full_signature: @JsIgnore public AddressTemplate append(String template)
focal_class.identifier: append
focal_class.modifiers: @JsIgnore public
focal_class.parameters: (String template)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate append(String template)
focal_class.class_method_signature: AddressTemplate.append(AddressTemplate template)
focal_class.full_signature: @JsIgnore public AddressTemplate append(AddressTemplate template)
focal_class.identifier: append
focal_class.modifiers: @JsIgnore public
focal_class.parameters: (AddressTemplate template)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate append(AddressTemplate template)
focal_class.class_method_signature: AddressTemplate.subTemplate(int fromIndex, int toIndex)
focal_class.full_signature: @JsIgnore public AddressTemplate subTemplate(int fromIndex, int toIndex)
focal_class.identifier: subTemplate
focal_class.modifiers: @JsIgnore public
focal_class.parameters: (int fromIndex, int toIndex)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate subTemplate(int fromIndex, int toIndex)
focal_class.class_method_signature: AddressTemplate.getParent()
focal_class.full_signature: @JsProperty public AddressTemplate getParent()
focal_class.identifier: getParent
focal_class.modifiers: @JsProperty public
focal_class.parameters: ()
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate getParent()
focal_class.class_method_signature: AddressTemplate.replaceWildcards(String wildcard, String... wildcards)
focal_class.full_signature: @JsIgnore public AddressTemplate replaceWildcards(String wildcard, String... wildcards)
focal_class.identifier: replaceWildcards
focal_class.modifiers: @JsIgnore public
focal_class.parameters: (String wildcard, String... wildcards)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate replaceWildcards(String wildcard, String... wildcards)
focal_class.class_method_signature: AddressTemplate.firstName()
focal_class.full_signature: @JsProperty(name = "firstName") public String firstName()
focal_class.identifier: firstName
focal_class.modifiers: @JsProperty(name = "firstName") public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String firstName()
focal_class.class_method_signature: AddressTemplate.firstValue()
focal_class.full_signature: @JsProperty(name = "firstValue") public String firstValue()
focal_class.identifier: firstValue
focal_class.modifiers: @JsProperty(name = "firstValue") public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String firstValue()
focal_class.class_method_signature: AddressTemplate.lastName()
focal_class.full_signature: @JsProperty(name = "lastName") public String lastName()
focal_class.identifier: lastName
focal_class.modifiers: @JsProperty(name = "lastName") public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String lastName()
focal_class.class_method_signature: AddressTemplate.lastValue()
focal_class.full_signature: @JsProperty(name = "lastValue") public String lastValue()
focal_class.identifier: lastValue
focal_class.modifiers: @JsProperty(name = "lastValue") public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String lastValue()
focal_class.class_method_signature: AddressTemplate.isOptional()
focal_class.full_signature: @JsIgnore public boolean isOptional()
focal_class.identifier: isOptional
focal_class.modifiers: @JsIgnore public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isOptional()
focal_class.class_method_signature: AddressTemplate.getTemplate()
focal_class.full_signature: @JsProperty String getTemplate()
focal_class.identifier: getTemplate
focal_class.modifiers: @JsProperty
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTemplate()
focal_class.class_method_signature: AddressTemplate.resolve(StatementContext context, @EsParam("...string") String... wildcards)
focal_class.full_signature: public ResourceAddress resolve(StatementContext context, @EsParam("...string") String... wildcards)
focal_class.identifier: resolve
focal_class.modifiers: public
focal_class.parameters: (StatementContext context, @EsParam("...string") String... wildcards)
focal_class.return: ResourceAddress
focal_class.signature: ResourceAddress resolve(StatementContext context, @EsParam("...string") String... wildcards)
focal_class.class_method_signature: AddressTemplate.resolveSome(StatementContext context, Memory<String> memory, String input)
focal_class.full_signature: private String resolveSome(StatementContext context, Memory<String> memory, String input)
focal_class.identifier: resolveSome
focal_class.modifiers: private
focal_class.parameters: (StatementContext context, Memory<String> memory, String input)
focal_class.return: String
focal_class.signature: String resolveSome(StatementContext context, Memory<String> memory, String input)
focal_class.class_method_signature: AddressTemplate.jsAppend(@EsParam("string|AddressTemplate") Object address)
focal_class.full_signature: @JsMethod(name = "append") public AddressTemplate jsAppend(@EsParam("string|AddressTemplate") Object address)
focal_class.identifier: jsAppend
focal_class.modifiers: @JsMethod(name = "append") public
focal_class.parameters: (@EsParam("string|AddressTemplate") Object address)
focal_class.return: AddressTemplate
focal_class.signature: AddressTemplate jsAppend(@EsParam("string|AddressTemplate") Object address)
focal_method.body: @JsIgnore
      public AddressTemplate replaceWildcards(String wildcard, String... wildcards) {
          List<String> allWildcards = new ArrayList<>();
          allWildcards.add(wildcard);
          if (wildcards != null) {
              allWildcards.addAll(Arrays.asList(wildcards));
          }
  
          LinkedList<Token> replacedTokens = new LinkedList<>();
          Iterator<String> wi = allWildcards.iterator();
          for (Token token : tokens) {
              if (wi.hasNext() && token.hasKey() && "*".equals(token.getValue())) {
                  replacedTokens.add(new Token(token.getKey(), wi.next()));
              } else {
                  replacedTokens.add(new Token(token.key, token.value));
              }
          }
          return AddressTemplate.of(join(this.optional, replacedTokens));
      }
focal_method.class_method_signature: AddressTemplate.replaceWildcards(String wildcard, String... wildcards)
focal_method.full_signature: @JsIgnore public AddressTemplate replaceWildcards(String wildcard, String... wildcards)
focal_method.identifier: replaceWildcards
focal_method.invocations: add addAll asList iterator hasNext hasKey equals getValue add getKey next add of join
focal_method.modifiers: @JsIgnore public
focal_method.parameters: (String wildcard, String... wildcards)
focal_method.return: AddressTemplate
focal_method.signature: AddressTemplate replaceWildcards(String wildcard, String... wildcards)