Package anvil.core

Examples of anvil.core.AnyTuple


    int n = (parameters == null) ? 0 : parameters.length;
    if (startFrom < n) {
      int length = n - startFrom;
      Any[] list = new Any[length];
      System.arraycopy(parameters, startFrom, list, 0, length);
      return new AnyTuple(list);
    } else {
      return (AnyTuple)Any.EMPTY_TUPLE;
    }
  }
View Full Code Here


 
 
  public static final AnyTuple rest3(Any[] parameters, int start)
  {
    if (start == 0) {
      return new AnyTuple(parameters);
    }
    int n = parameters.length;
    int m = n - start;
    if (m == 0) {
      return Any.EMPTY_TUPLE;
    }
    Any[] rest = new Any[m];
    System.arraycopy(parameters, start, rest, 0, m);
    return new AnyTuple(rest);
 
View Full Code Here

  }


  public static final AnyTuple gather3()
  {
    return new AnyTuple(Any.ARRAY0);
  }
View Full Code Here

    return new AnyTuple(Any.ARRAY0);
  }

  public static final AnyTuple gather3(Any p1)
  {
    return new AnyTuple(new Any[] { p1 });
  }
View Full Code Here

    return new AnyTuple(new Any[] { p1 });
  }

  public static final AnyTuple gather3(Any p1, Any p2)
  {
    return new AnyTuple(new Any[] { p1, p2 });
  }
View Full Code Here

    return new AnyTuple(new Any[] { p1, p2 });
  }

  public static final AnyTuple gather3(Any p1, Any p2, Any p3)
  {
    return new AnyTuple(new Any[] { p1, p2, p3 });
  }
View Full Code Here

    return new AnyTuple(new Any[] { p1, p2, p3 });
  }

  public static final AnyTuple gather3(Any p1, Any p2, Any p3, Any p4)
  {
    return new AnyTuple(new Any[] { p1, p2, p3, p4 });
  }
View Full Code Here

 
 
  public static final AnyTuple rest3(Any[] parameters, int start)
  {
    if (start == 0) {
      return new AnyTuple(parameters);
    }
    int n = parameters.length;
    int m = n - start;
    if (m == 0) {
      return Any.EMPTY_TUPLE;
    }
    Any[] rest = new Any[m];
    System.arraycopy(parameters, start, rest, 0, m);
    return new AnyTuple(rest);
 
View Full Code Here

    Any[] list = new Any[4];
    list[0] = Any.create(exception.getPublicId());
    list[1] = Any.create(exception.getSystemId());
    list[2] = Any.create(exception.getLineNumber());
    list[3] = Any.create(exception.getColumnNumber())
    return new AnyTuple(list);
  }
View Full Code Here

    Any[] list = new Any[4];
    list[0] = Any.create(_locator.getPublicId());
    list[1] = Any.create(_locator.getSystemId());
    list[2] = Any.create(_locator.getLineNumber());
    list[3] = Any.create(_locator.getColumnNumber());
    return new AnyTuple(list);
  }
View Full Code Here

TOP

Related Classes of anvil.core.AnyTuple

Copyright © 2018 www.massapicom. 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.