cvs commit: jakarta-bcel/src/java/org/apache/bcel Constants.java

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
mdahm       2002/06/06 04:30:27

  Modified:    src/java/org/apache/bcel Constants.java
  Log:
  new CLASS_TYPE_NAMES
  
  Revision  Changes    Path
  1.3       +18 -1     jakarta-bcel/src/java/org/apache/bcel/Constants.java
  
  Index: Constants.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bcel/src/java/org/apache/bcel/Constants.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Constants.java	11 Mar 2002 12:22:39 -0000	1.2
  +++ Constants.java	6 Jun 2002 11:30:27 -0000	1.3
  @@ -57,7 +57,7 @@
   /**
    * Constants for the project, mostly defined in the JVM specification.
    *
  - * @version $Id: Constants.java,v 1.2 2002/03/11 12:22:39 mdahm Exp $
  + * @version $Id: Constants.java,v 1.3 2002/06/06 11:30:27 mdahm Exp $
    * @author  <A HREF="mailto:[email protected]">M. Dahm</A>
    */
   public interface Constants {
  @@ -420,12 +420,29 @@
     public static final byte T_UNKNOWN   = 15;
     public static final byte T_ADDRESS   = 16;
   
  +  /** The primitive type names corresponding to the T_XX constants,
  +   * e.g., TYPE_NAMES[T_INT] = "int"
  +   */
     public static final String[] TYPE_NAMES = {
       ILLEGAL_TYPE, ILLEGAL_TYPE,  ILLEGAL_TYPE, ILLEGAL_TYPE,
       "boolean", "char", "float", "double", "byte", "short", "int", "long",
       "void", "array", "object", "unknown" // Non-standard
     };
   
  +  /** The primitive class names corresponding to the T_XX constants,
  +   * e.g., CLASS_TYPE_NAMES[T_INT] = "java.lang.Integer"
  +   */
  +  public static final String[] CLASS_TYPE_NAMES = {
  +    ILLEGAL_TYPE, ILLEGAL_TYPE,  ILLEGAL_TYPE, ILLEGAL_TYPE,
  +    "java.lang.Boolean", "java.lang.Character", "java.lang.Float",
  +    "java.lang.Double", "java.lang.Byte", "java.lang.Short",
  +    "java.lang.Integer", "java.lang.Long", "java.lang.Void",
  +    ILLEGAL_TYPE, ILLEGAL_TYPE,  ILLEGAL_TYPE
  +  };
  +
  +  /** The signature characters corresponding to primitive types,
  +   * e.g., SHORT_TYPE_NAMES[T_INT] = "I"
  +   */
     public static final String[] SHORT_TYPE_NAMES = {
       ILLEGAL_TYPE, ILLEGAL_TYPE,  ILLEGAL_TYPE, ILLEGAL_TYPE,
       "Z", "C", "F", "D", "B", "S", "I", "J",
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.