All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.virtdata.libbasics.shared.from_string.MatchFuncAutoDocsInfo Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
// This file is auto-generated.
package io.virtdata.libbasics.shared.from_string;

import io.virtdata.annotations.Category;
import io.virtdata.annotations.Service;
import io.virtdata.processors.DocCtorData;
import io.virtdata.processors.DocForFuncCtor;
import io.virtdata.processors.DocFuncData;
import java.lang.String;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;

@Service(DocFuncData.class)
public class MatchFuncAutoDocsInfo implements DocFuncData {
  public String getClassName() {
    return "MatchFunc";
  }

  public String getPackageName() {
    return "io.virtdata.libbasics.shared.from_string";
  }

  public String getClassJavadoc() {
    return "Match any input with a regular expression, and apply the associated\n"
            + "function to it, yielding the value. If no matches occur, then the original\n"
            + "value is passed through unchanged. Patterns and functions are passed as\n"
            + "even,odd pairs indexed from the 0th position. Instead of a function, a\n"
            + "String value may be provided as the associated output value.\n";
  }

  public String getInType() {
    return "java.lang.String";
  }

  public String getOutType() {
    return "java.lang.String";
  }

  public Category[] getCategories() {
    return new Category[] {  };
  }

  public List getCtors() {
    return new ArrayList() {{
          add(new DocForFuncCtor("MatchFunc", "", 
            new LinkedHashMap() {{
              put("funcs","java.lang.Object[]...");
            }},
            new ArrayList>() {{
              add(new ArrayList() {{
                add("MatchFunc('.*','onevalue')");
                add("Match all String inputs, simply returning 'onevalue' as the output value.");
              }});
              add(new ArrayList() {{
                add("MatchFunc('[0-9]+',Suffix('-is-a-number'))");
                add("Append '-is-a-number' to every input which is a sequence of digits");
              }});
            }}
          ));
        }};
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy