Save This Page
Home » cglib-src-2.2 » net.sf.cglib.core » [javadoc | source]
    1   /*
    2    * Copyright 2003 The Apache Software Foundation
    3    *
    4    *  Licensed under the Apache License, Version 2.0 (the "License");
    5    * you may not use this file except in compliance with the License.
    6    * You may obtain a copy of the License at
    7    *
    8    *      http://www.apache.org/licenses/LICENSE-2.0
    9    *
   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 =
   29         TypeUtils.parseSignature("void <clinit>()");
   30       
   31       public static final Type TYPE_OBJECT_ARRAY = TypeUtils.parseType("Object[]");
   32       public static final Type TYPE_CLASS_ARRAY = TypeUtils.parseType("Class[]");
   33       public static final Type TYPE_STRING_ARRAY = TypeUtils.parseType("String[]");
   34   
   35       public static final Type TYPE_OBJECT = TypeUtils.parseType("Object");
   36       public static final Type TYPE_CLASS = TypeUtils.parseType("Class");
   37       public static final Type TYPE_CLASS_LOADER = TypeUtils.parseType("ClassLoader");
   38       public static final Type TYPE_CHARACTER = TypeUtils.parseType("Character");
   39       public static final Type TYPE_BOOLEAN = TypeUtils.parseType("Boolean");
   40       public static final Type TYPE_DOUBLE = TypeUtils.parseType("Double");
   41       public static final Type TYPE_FLOAT = TypeUtils.parseType("Float");
   42       public static final Type TYPE_LONG = TypeUtils.parseType("Long");
   43       public static final Type TYPE_INTEGER = TypeUtils.parseType("Integer");
   44       public static final Type TYPE_SHORT = TypeUtils.parseType("Short");
   45       public static final Type TYPE_BYTE = TypeUtils.parseType("Byte");
   46       public static final Type TYPE_NUMBER = TypeUtils.parseType("Number");
   47       public static final Type TYPE_STRING = TypeUtils.parseType("String");
   48       public static final Type TYPE_THROWABLE = TypeUtils.parseType("Throwable");
   49       public static final Type TYPE_BIG_INTEGER = TypeUtils.parseType("java.math.BigInteger");
   50       public static final Type TYPE_BIG_DECIMAL = TypeUtils.parseType("java.math.BigDecimal");
   51       public static final Type TYPE_STRING_BUFFER = TypeUtils.parseType("StringBuffer");
   52       public static final Type TYPE_RUNTIME_EXCEPTION = TypeUtils.parseType("RuntimeException");
   53       public static final Type TYPE_ERROR = TypeUtils.parseType("Error");
   54       public static final Type TYPE_SYSTEM = TypeUtils.parseType("System");
   55       public static final Type TYPE_SIGNATURE = TypeUtils.parseType("net.sf.cglib.core.Signature");
   56       
   57       public static final String CONSTRUCTOR_NAME = "<init>";
   58       public static final String STATIC_NAME = "<clinit>";
   59       public static final String SOURCE_FILE = "<generated>";
   60       public static final String SUID_FIELD_NAME = "serialVersionUID";
   61   
   62       public static final int PRIVATE_FINAL_STATIC = ACC_PRIVATE | ACC_FINAL | ACC_STATIC;
   63   
   64       public static final int SWITCH_STYLE_TRIE = 0;
   65       public static final int SWITCH_STYLE_HASH = 1;
   66       public static final int SWITCH_STYLE_HASHONLY = 2;
   67   }

Save This Page
Home » cglib-src-2.2 » net.sf.cglib.core » [javadoc | source]