示例#1
0
 public boolean test() throws LRException {
   try {
     if (value.isNumeric()) return value.getNumericValue() == value2.getNumericValue();
     String v1 = value.getStringValue().trim();
     String v2 = value2.getStringValue().trim();
     return v1.equals(v2);
   } catch (NullPointerException e) {
     return false;
   }
 }
示例#2
0
 public long getNumericValue() throws LRException {
   return value1.getNumericValue() ^ value2.getNumericValue();
 }
示例#3
0
 /**
  * ************************************************************************* Implement the
  * LHValueHolder interface.
  */
 public void setValue(LVSpec value) throws LRException {
   setData(new Long(value.getNumericValue()));
 }
示例#4
0
 public String getStringValue() throws LRException {
   long n = value.getNumericValue();
   return toHex16((int) (n >> 16)) + toHex16((int) (n & 0x0000ffff));
 }