@Test public void resolve_metadata() { Token token = otherToken(3,5,"true"); TreeMetaData metaData = RangeConverter.resolveMetaData(metaDataProvider, "3:5:3:9"); assertThat(metaData).isNotNull(); assertThat(metaData.textRange()).isEqualTo(token.textRange()); }
public static TreeMetaData resolveMetaData(TreeMetaDataProvider metaDataProvider, String metaDataReference) { return metaDataProvider.metaData(parse(metaDataReference)); }
RangeConverter { public static TreeMetaData resolveMetaData(TreeMetaDataProvider metaDataProvider, String metaDataReference) { return metaDataProvider.metaData(parse(metaDataReference)); } }
RangeConverter { public static TreeMetaData resolveMetaData(TreeMetaDataProvider metaDataProvider, String metaDataReference) { return metaDataProvider.metaData(parse(metaDataReference)); } private  RangeConverter(); }
RangeConverter { public static TreeMetaData resolveMetaData(TreeMetaDataProvider metaDataProvider, String metaDataReference) { return metaDataProvider.metaData(parse(metaDataReference)); } private  RangeConverter(); @Nullable static String format(@Nullable TextRange range); @Nullable static TextRange parse(@Nullable String value); @Nullable static String tokenReference(@Nullable Token token); @Nullable static Token resolveToken(TreeMetaDataProvider metaDataProvider, @Nullable String tokenReference); static String metaDataReference(Tree tree); static TreeMetaData resolveMetaData(TreeMetaDataProvider metaDataProvider, String metaDataReference); @Nullable static String treeReference(@Nullable Tree tree); @Nullable static T resolveNullableTree(Tree parent, @Nullable String treeReference, Class<T> childClass); }
RangeConverter { public static TreeMetaData resolveMetaData(TreeMetaDataProvider metaDataProvider, String metaDataReference) { return metaDataProvider.metaData(parse(metaDataReference)); } private  RangeConverter(); @Nullable static String format(@Nullable TextRange range); @Nullable static TextRange parse(@Nullable String value); @Nullable static String tokenReference(@Nullable Token token); @Nullable static Token resolveToken(TreeMetaDataProvider metaDataProvider, @Nullable String tokenReference); static String metaDataReference(Tree tree); static TreeMetaData resolveMetaData(TreeMetaDataProvider metaDataProvider, String metaDataReference); @Nullable static String treeReference(@Nullable Tree tree); @Nullable static T resolveNullableTree(Tree parent, @Nullable String treeReference, Class<T> childClass);  }