public String getActions ( ) { final String actionString = this . actionString ; if ( actionString != null ) { return actionString ; } int actionBits = this . actionBits ; if ( actionBits == ACTION_ALL ) { return this . actionString = "*" ; } int m = Integer . lowestOneBit ( actionBits ) ; if ( m != 0 ) { StringBuilder b = new StringBuilder ( ) ; b . append ( getAction ( m ) ) ; actionBits &= ~ m ; while ( actionBits != 0 ) { m = Integer . lowestOneBit ( actionBits ) ; b . append ( ' ' ) . append ( getAction ( m ) ) ; actionBits &= ~ m ; } return this . actionString = b . toString ( ) ; } else { return this . actionString = "" ; } }
Get the actions string . The actions string will be a canonical version of the one passed in at construction .