question: void addAttributeSelection ( String exp ) { int index = exp . indexOf ( '=' ) ; String value = null ; int constraint = AttString . EQUALS ; if ( index != - 1 ) { if ( index == 0 ) { setTagId ( TAG_CSS_ILLEGAL_SELECTOR ) ; return ; } int opIndex = index ; char c = exp . charAt ( index - 1 ) ; if ( c == '~' ) { constraint = AttString . CONTAINS_WORD ; opIndex -- ; } else if ( c == '|' ) { constraint = AttString . BEGINS_WITH ; opIndex -- ; } value = exp . substring ( index + 1 ) ; if ( ( ( value . startsWith ( "\"" ) ) && ( value . endsWith ( "\"" ) ) ) || ( ( value . startsWith ( "'" ) ) && ( value . endsWith ( "'" ) ) ) ) { value = value . substring ( 1 , value . length ( ) - 1 ) ; } exp = exp . substring ( 0 , opIndex ) ; } if ( attributeSelections == null ) { attributeSelections = new Vector ( ) ; } attributeSelections . addElement ( new AttString ( exp , constraint , value ) ) ; }
target:  Adds the given attribute selection