public Boolean consumeBooleanConstantAttribute(String name) throws UnableToCompleteException {
  String value=consumeRawAttribute(name);
  if (value == null) {
    return null;
  }
  if (value.equals("true") || value.equals("false")) {
    return Boolean.valueOf(value);
  }
  logger.die(this,"%s must be \"true\" or \"false\"",name);
  return null;
}

public Boolean consumeBooleanConstantAttribute ( String name ) throws UnableToCompleteException { String value = consumeRawAttribute ( name ) ; if ( value == null ) { return null ; } if ( value . equals ( "true" ) || value . equals ( "false" ) ) { return Boolean . valueOf ( value ) ; } logger . die ( this , "%s must be \"true\" or \"false\"" , name ) ; return null ; }
consumes the named attribute as a boolean expression . this will not accept { field . reference } expressions . useful for values that must be resolved at compile time , such as generated annotation values .
