public static boolean isSubscript(AttributeSet a){
  Boolean subscript=(Boolean)a.getAttribute(Subscript);
  if (subscript != null) {
    return subscript.booleanValue();
  }
  return false;
}

public static boolean isSubscript ( AttributeSet a ) { Boolean subscript = ( Boolean ) a . getAttribute ( Subscript ) ; if ( subscript != null ) { return subscript . booleanValue ( ) ; } return false ; }
checks whether the subscript attribute is set .
