public NumericLiteral(Object x){
  if (x instanceof Number) {
    m_number=(Number)x;
    m_type=TypeLib.getPrimitiveType(m_number.getClass());
  }
 else {
    throw new IllegalArgumentException("Invalid type!");
  }
}

public NumericLiteral ( Object x ) { if ( x instanceof Number ) { m_number = ( Number ) x ; m_type = TypeLib . getPrimitiveType ( m_number . getClass ( ) ) ; } else { throw new IllegalArgumentException ( "Invalid type!" ) ; } }
create a new numericliteral .
