rt/emul/compact/src/main/java/java/lang/System.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 26 Feb 2013 16:54:16 +0100
changeset 772 d382dacfd73f
parent 636 emul/compact/src/main/java/java/lang/System.java@8d0be6a9a809
child 1262 bbc756ef9a73
child 1351 f73c1a0234fb
permissions -rw-r--r--
Moving modules around so the runtime is under one master pom and can be built without building other modules that are in the repository
jaroslav@636
     1
/**
jaroslav@636
     2
 * Back 2 Browser Bytecode Translator
jaroslav@636
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@636
     4
 *
jaroslav@636
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@636
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@636
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@636
     8
 *
jaroslav@636
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@636
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@636
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@636
    12
 * GNU General Public License for more details.
jaroslav@636
    13
 *
jaroslav@636
    14
 * You should have received a copy of the GNU General Public License
jaroslav@636
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@636
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@636
    17
 */
jaroslav@636
    18
package java.lang;
jaroslav@636
    19
jaroslav@636
    20
/** Poor man's re-implementation of most important System methods.
jaroslav@636
    21
 *
jaroslav@636
    22
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@636
    23
 */
jaroslav@636
    24
public class System {
jaroslav@636
    25
    private System() {
jaroslav@636
    26
    }
jaroslav@636
    27
    
jaroslav@636
    28
    public static void arraycopy(Object value, int srcBegin, Object dst, int dstBegin, int count) {
jaroslav@636
    29
        org.apidesign.bck2brwsr.emul.lang.System.arraycopy(value, srcBegin, dst, dstBegin, count);
jaroslav@636
    30
    }
jaroslav@636
    31
    
jaroslav@636
    32
    public static long currentTimeMillis() {
jaroslav@636
    33
        return org.apidesign.bck2brwsr.emul.lang.System.currentTimeMillis();
jaroslav@636
    34
    }
jaroslav@636
    35
    
jaroslav@636
    36
}