01: /*
02: * Copyright 2003 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package net.sf.cglib.core;
17:
18: import org.objectweb.asm.Type;
19:
20: /**
21: * @author Juozas Baliuka <a href="mailto:baliuka@mwm.lt">baliuka@mwm.lt</a>
22: * @version $Id: Constants.java,v 1.21 2006/03/05 02:43:19 herbyderby Exp $
23: */
24: public interface Constants extends org.objectweb.asm.Opcodes {
25: public static final Class[] EMPTY_CLASS_ARRAY = {};
26: public static final Type[] TYPES_EMPTY = {};
27:
28: public static final Signature SIG_STATIC = TypeUtils
29: .parseSignature("void <clinit>()");
30:
31: public static final Type TYPE_OBJECT_ARRAY = TypeUtils
32: .parseType("Object[]");
33: public static final Type TYPE_CLASS_ARRAY = TypeUtils
34: .parseType("Class[]");
35: public static final Type TYPE_STRING_ARRAY = TypeUtils
36: .parseType("String[]");
37:
38: public static final Type TYPE_OBJECT = TypeUtils
39: .parseType("Object");
40: public static final Type TYPE_CLASS = TypeUtils.parseType("Class");
41: public static final Type TYPE_CLASS_LOADER = TypeUtils
42: .parseType("ClassLoader");
43: public static final Type TYPE_CHARACTER = TypeUtils
44: .parseType("Character");
45: public static final Type TYPE_BOOLEAN = TypeUtils
46: .parseType("Boolean");
47: public static final Type TYPE_DOUBLE = TypeUtils
48: .parseType("Double");
49: public static final Type TYPE_FLOAT = TypeUtils.parseType("Float");
50: public static final Type TYPE_LONG = TypeUtils.parseType("Long");
51: public static final Type TYPE_INTEGER = TypeUtils
52: .parseType("Integer");
53: public static final Type TYPE_SHORT = TypeUtils.parseType("Short");
54: public static final Type TYPE_BYTE = TypeUtils.parseType("Byte");
55: public static final Type TYPE_NUMBER = TypeUtils
56: .parseType("Number");
57: public static final Type TYPE_STRING = TypeUtils
58: .parseType("String");
59: public static final Type TYPE_THROWABLE = TypeUtils
60: .parseType("Throwable");
61: public static final Type TYPE_BIG_INTEGER = TypeUtils
62: .parseType("java.math.BigInteger");
63: public static final Type TYPE_BIG_DECIMAL = TypeUtils
64: .parseType("java.math.BigDecimal");
65: public static final Type TYPE_STRING_BUFFER = TypeUtils
66: .parseType("StringBuffer");
67: public static final Type TYPE_RUNTIME_EXCEPTION = TypeUtils
68: .parseType("RuntimeException");
69: public static final Type TYPE_ERROR = TypeUtils.parseType("Error");
70: public static final Type TYPE_SYSTEM = TypeUtils
71: .parseType("System");
72: public static final Type TYPE_SIGNATURE = TypeUtils
73: .parseType("net.sf.cglib.core.Signature");
74:
75: public static final String CONSTRUCTOR_NAME = "<init>";
76: public static final String STATIC_NAME = "<clinit>";
77: public static final String SOURCE_FILE = "<generated>";
78: public static final String SUID_FIELD_NAME = "serialVersionUID";
79:
80: public static final int PRIVATE_FINAL_STATIC = ACC_PRIVATE
81: | ACC_FINAL | ACC_STATIC;
82:
83: public static final int SWITCH_STYLE_TRIE = 0;
84: public static final int SWITCH_STYLE_HASH = 1;
85: public static final int SWITCH_STYLE_HASHONLY = 2;
86: }
|