Examples of split()


Examples of com.volantis.styling.impl.engine.PropertySplitterImpl.split()

    private void doSplitterTest(
            MutableStyleProperties properties,
            final PropertyValue[] expectedImportant,
            final PropertyValue[] expectedNormal) {
        PropertySplitter splitter = new PropertySplitterImpl(valueCompilerMock);
        Prioritised[] prioritised = splitter.split(properties);

        Map map = new HashMap();
        map.put(Priority.NORMAL, expectedNormal);
        map.put(Priority.IMPORTANT, expectedImportant);
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.algorithm.clustering.correlation.cash.CASHInterval.split()

      }

      if(logger.isDebuggingFiner()) {
        logger.debugFiner("split " + interval.toString() + " " + interval.getLevel() + "-" + interval.getMaxSplitDimension());
      }
      interval.split();

      // noise
      if(!interval.hasChildren()) {
        return null;
      }
View Full Code Here

Examples of edu.umd.cs.findbugs.util.SplitCamelCaseIdentifier.split()

        if (BuildObligationPolicyDatabase.INFER_CLOSE_METHODS && database != null
                && !xmethod.getClassName().startsWith("java")) {
            boolean methodHasCloseInName = false;
            String methodName = xmethod.getName();
            SplitCamelCaseIdentifier splitter = new SplitCamelCaseIdentifier(methodName);
            methodHasCloseInName = splitter.split().contains("close");
            Obligation[] paramObligationTypes = database.getFactory().getParameterObligationTypes(xmethod);

            for (int i = 0; i < xmethod.getNumParams(); i++) {
                Obligation obligationType = paramObligationTypes[i];
                if (obligationType == null) {
View Full Code Here

Examples of ij.plugin.filter.RGBStackSplitter.split()

    private  void doRGBProjections(ImagePlus imp) {
      boolean saveUseInvertingLut = Prefs.useInvertingLut;
      Prefs.useInvertingLut = false;
        RGBStackSplitter splitter = new RGBStackSplitter();
        splitter.split(imp.getStack(), true);
        ImagePlus red = new ImagePlus("Red", splitter.red);
        ImagePlus green = new ImagePlus("Green", splitter.green);
        ImagePlus blue = new ImagePlus("Blue", splitter.blue);
        Calibration cal = imp.getCalibration();
        Roi roi = imp.getRoi();
View Full Code Here

Examples of info.ata4.unity.cli.extract.AssetExtractor.split()

    @Override
    public void processAsset(AssetFile asset) throws IOException {
        AssetExtractor ae = new AssetExtractor(asset);
        ae.setClassFilter(getOptions().getClassFilter());
        ae.setOutputDir(getOutputDir());
        ae.split();
    }
}
View Full Code Here

Examples of java.lang.String.split()

    public static List<URL> parseWhitespaceCommaFile(String filename) throws FileNotFoundException, MalformedURLException, IOException {
        List<URL> list = new ArrayList<URL>();
        LineNumberReader lr = new LineNumberReader(new BufferedReader(new FileReader(new File(filename))));
        String line = lr.readLine();
        while (line != null) {
            List<String> s = Arrays.asList(line.split("[\\s,]+"));
            for (String i : s) {
                try {
                    list.add(new URL(i));
                } catch(MalformedURLException ex) {
                   
View Full Code Here

Examples of java.util.regex.Pattern.split()

    return ret;
  }
 
  private static List<Location> parsePoints(String points) {
    Pattern patt = Pattern.compile("[ ,\n\r\t]+");
    String[] toks = patt.split(points);
    Location[] ret = new Location[toks.length / 2];
    for (int i = 0; i < ret.length; i++) {
      int x = Integer.parseInt(toks[2 * i]);
      int y = Integer.parseInt(toks[2 * i + 1]);
      ret[i] = Location.create(x, y);
View Full Code Here

Examples of java.util.regex.Pattern.split()

   */
  private boolean findExpressionInMultiValue(String ex, String values, int type) {
    try {
      if (ex == null || values == null) return false;                      // empty params?
      Pattern multiValueSeparatorEx = Pattern.compile(",");
      String[] a = multiValueSeparatorEx.split(ex);                        // split on ,
      Pattern multiValueSeparatorValue = Pattern.compile(";");
      String[] b = multiValueSeparatorValue.split(values);                // split on ;
      if (a == null || (a.length == 1 && a[0] == "")) return false;        // empty array?
      if (b == null || (b.length == 1 && b[0] == "")) return false;        // empty array?
      if (Tracing.isDebugEnabled(EvalAttributeFunction.class)) {
View Full Code Here

Examples of java.util.regex.Pattern.split()

    try {
      if (ex == null || values == null) return false;                      // empty params?
      Pattern multiValueSeparatorEx = Pattern.compile(",");
      String[] a = multiValueSeparatorEx.split(ex);                        // split on ,
      Pattern multiValueSeparatorValue = Pattern.compile(";");
      String[] b = multiValueSeparatorValue.split(values);                // split on ;
      if (a == null || (a.length == 1 && a[0] == "")) return false;        // empty array?
      if (b == null || (b.length == 1 && b[0] == "")) return false;        // empty array?
      if (Tracing.isDebugEnabled(EvalAttributeFunction.class)) {
        Tracing.logDebug("a: " + Arrays.toString(a), EvalAttributeFunction.class);
        Tracing.logDebug("b: " + Arrays.toString(b), EvalAttributeFunction.class);
View Full Code Here

Examples of java.util.regex.Pattern.split()

      Pattern p = Pattern.compile("[#]");
      String[] keyValue = null;
      java.util.Enumeration enuma = entries.keys();

      while (enuma.hasMoreElements()) {
        keyValue = p.split(enuma.nextElement().toString());
        if (getSectionEntry(section, keyValue[1]) != null)
          properties.put(normalizeKey(keyValue[1]), this.getSectionEntry(section, keyValue[1]));
      }
      return properties;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.