diff graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/ConstantPool.java @ 7530:5e3d1a68664e

applied mx eclipseformat to all Java files
author Doug Simon <doug.simon@oracle.com>
date Wed, 23 Jan 2013 16:34:57 +0100
parents b89b5038ad7e
children 7ef66078d837
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/ConstantPool.java	Wed Jan 23 16:34:38 2013 +0100
+++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/ConstantPool.java	Wed Jan 23 16:34:57 2013 +0100
@@ -23,58 +23,63 @@
 package com.oracle.graal.api.meta;
 
 /**
- * Represents the runtime representation of the constant pool that is used by the compiler when parsing bytecode.
- * Provides methods to look up a constant pool entry without performing resolution. They are used during compilation.
+ * Represents the runtime representation of the constant pool that is used by the compiler when
+ * parsing bytecode. Provides methods to look up a constant pool entry without performing
+ * resolution. They are used during compilation.
  */
 public interface ConstantPool {
 
     /**
-     * Ensures that the type referenced by the specified constant pool entry is loaded and initialized. This can be
-     * used to compile time resolve a type. It works for field, method, or type constant pool entries.
-     *
+     * Ensures that the type referenced by the specified constant pool entry is loaded and
+     * initialized. This can be used to compile time resolve a type. It works for field, method, or
+     * type constant pool entries.
+     * 
      * @param cpi the index of the constant pool entry that references the type
      * @param opcode the opcode of the instruction that references the type
      */
     void loadReferencedType(int cpi, int opcode);
 
     /**
-     * Looks up a reference to a field. If {@code opcode} is non-negative, then resolution checks specific to the
-     * bytecode it denotes are performed if the field is already resolved. Should any of these checks fail, an
-     * unresolved field reference is returned.
-     *
+     * Looks up a reference to a field. If {@code opcode} is non-negative, then resolution checks
+     * specific to the bytecode it denotes are performed if the field is already resolved. Should
+     * any of these checks fail, an unresolved field reference is returned.
+     * 
      * @param cpi the constant pool index
-     * @param opcode the opcode of the instruction for which the lookup is being performed or {@code -1}
+     * @param opcode the opcode of the instruction for which the lookup is being performed or
+     *            {@code -1}
      * @return a reference to the field at {@code cpi} in this pool
      * @throws ClassFormatError if the entry at {@code cpi} is not a field
      */
     JavaField lookupField(int cpi, int opcode);
 
     /**
-     * Looks up a reference to a method. If {@code opcode} is non-negative, then resolution checks specific to the
-     * bytecode it denotes are performed if the method is already resolved. Should any of these checks fail, an
-     * unresolved method reference is returned.
-     *
+     * Looks up a reference to a method. If {@code opcode} is non-negative, then resolution checks
+     * specific to the bytecode it denotes are performed if the method is already resolved. Should
+     * any of these checks fail, an unresolved method reference is returned.
+     * 
      * @param cpi the constant pool index
-     * @param opcode the opcode of the instruction for which the lookup is being performed or {@code -1}
+     * @param opcode the opcode of the instruction for which the lookup is being performed or
+     *            {@code -1}
      * @return a reference to the method at {@code cpi} in this pool
      * @throws ClassFormatError if the entry at {@code cpi} is not a method
      */
     JavaMethod lookupMethod(int cpi, int opcode);
 
     /**
-     * Looks up a reference to a type. If {@code opcode} is non-negative, then resolution checks specific to the
-     * bytecode it denotes are performed if the type is already resolved. Should any of these checks fail, an unresolved
-     * type reference is returned.
-     *
+     * Looks up a reference to a type. If {@code opcode} is non-negative, then resolution checks
+     * specific to the bytecode it denotes are performed if the type is already resolved. Should any
+     * of these checks fail, an unresolved type reference is returned.
+     * 
      * @param cpi the constant pool index
-     * @param opcode the opcode of the instruction for which the lookup is being performed or {@code -1}
+     * @param opcode the opcode of the instruction for which the lookup is being performed or
+     *            {@code -1}
      * @return a reference to the compiler interface type
      */
     JavaType lookupType(int cpi, int opcode);
 
     /**
      * Looks up a method signature.
-     *
+     * 
      * @param cpi the constant pool index
      * @return the method signature at index {@code cpi} in this constant pool
      */
@@ -82,9 +87,10 @@
 
     /**
      * Looks up a constant at the specified index.
-     *
+     * 
      * @param cpi the constant pool index
-     * @return the {@code Constant} or {@code JavaType} instance representing the constant pool entry
+     * @return the {@code Constant} or {@code JavaType} instance representing the constant pool
+     *         entry
      */
     Object lookupConstant(int cpi);
 }