01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /**
18: * @author Evgueni Brevnov
19: * @version $Revision: 1.1.2.1.4.4 $
20: */package java.lang;
21:
22: /**
23: * @com.intel.drl.spec_ref
24: *
25: * Serves as a layer between JIT compiler and java application.
26: * <p>
27: * This class must be implemented according to the common policy for porting
28: * interfaces - see the porting interface overview for more detailes.
29: *
30: * @api2vm
31: */
32: public final class Compiler {
33:
34: /**
35: * This class is not supposed to be instantiated.
36: */
37: private Compiler() {
38: }
39:
40: /**
41: * This method satisfies the requirements of the specification for the
42: * {@link Compiler#command(java.lang.Object) Compiler.command(Object any)}
43: * method.
44: *
45: * @api2vm
46: */
47: public static Object command(Object obj) {
48: if (obj == null) {
49: throw new NullPointerException();
50: }
51: return null;
52: }
53:
54: /**
55: * This method satisfies the requirements of the specification for the
56: * {@link Compiler#compileClass(java.lang.Class)
57: * Compiler.compileClass(Class clazz)} method.
58: *
59: * @api2vm
60: */
61: public static boolean compileClass(Class<?> clazz) {
62: if (clazz == null) {
63: throw new NullPointerException();
64: }
65: return false;
66: }
67:
68: /**
69: * This method satisfies the requirements of the specification for the
70: * {@link Compiler#compileClasses(java.lang.String)
71: * Compiler.compileClasses(String string)} method.
72: *
73: * @api2vm
74: */
75: public static boolean compileClasses(String name) {
76: if (name == null) {
77: throw new NullPointerException();
78: }
79: return false;
80: }
81:
82: /**
83: * This method satisfies the requirements of the specification for the
84: * {@link Compiler#disable() Compiler.disable()} method.
85: *
86: * @api2vm
87: */
88: public static void disable() {
89: }
90:
91: /**
92: * This method satisfies the requirements of the specification for the
93: * {@link Compiler#enable() Compiler.enable()} method.
94: *
95: * @api2vm
96: */
97: public static void enable() {
98: }
99: }
|