corba/src/share/classes/com/sun/tools/corba/se/idl/constExpr/Expression.java
changeset 4623 e3aaa29eff65
parent 4 02bb8761fcce
child 5555 b2b5ed3f0d0d
equal deleted inserted replaced
4554:e9c98378f6b9 4623:e3aaa29eff65
   121   // Use the following routines to coerce this expression's value to its
   121   // Use the following routines to coerce this expression's value to its
   122   // "target" type.
   122   // "target" type.
   123 
   123 
   124   /**
   124   /**
   125    * Coerces a number to the target type of this expression.
   125    * Coerces a number to the target type of this expression.
   126    * @parm  number  The number to coerce.
   126    * @param  obj  The number to coerce.
   127    * @return  the value of number coerced to the (target) type of
   127    * @return  the value of number coerced to the (target) type of
   128    *  this expression.
   128    *  this expression.
   129    **/
   129    **/
   130   public Object coerceToTarget (Object obj)
   130   public Object coerceToTarget (Object obj)
   131   {
   131   {
   140   } // coerceToTarget
   140   } // coerceToTarget
   141 
   141 
   142   /**
   142   /**
   143    * Coerces an integral value (BigInteger) to its corresponding unsigned
   143    * Coerces an integral value (BigInteger) to its corresponding unsigned
   144    * representation, if the target type of this expression is unsigned.
   144    * representation, if the target type of this expression is unsigned.
   145    * @parm b The BigInteger to be coerced.
   145    * @param b The BigInteger to be coerced.
   146    * @return the value of an integral type coerced to its corresponding
   146    * @return the value of an integral type coerced to its corresponding
   147    *  unsigned integral type, if the target type of this expression is
   147    *  unsigned integral type, if the target type of this expression is
   148    *  unsigned.
   148    *  unsigned.
   149    **/
   149    **/
   150   protected BigInteger toUnsignedTarget (BigInteger b)
   150   protected BigInteger toUnsignedTarget (BigInteger b)
   168   } // toUnsignedTarget
   168   } // toUnsignedTarget
   169 
   169 
   170   /**
   170   /**
   171    * Coerces an integral value (BigInteger) to its corresponding signed
   171    * Coerces an integral value (BigInteger) to its corresponding signed
   172    * representation, if the target type of this expression is signed.
   172    * representation, if the target type of this expression is signed.
   173    * @parm  b  The BigInteger to be coerced.
   173    * @param  b  The BigInteger to be coerced.
   174    * @return  the value of an integral type coerced to its corresponding
   174    * @return  the value of an integral type coerced to its corresponding
   175    *  signed integral type, if the target type of this expression is
   175    *  signed integral type, if the target type of this expression is
   176    *  signed.
   176    *  signed.
   177    **/
   177    **/
   178   protected BigInteger toSignedTarget (BigInteger b)
   178   protected BigInteger toSignedTarget (BigInteger b)