@ Nullable public String singleVar ( ) { if ( bindings . size ( ) == 1 ) { return bindings . entrySet ( ) . iterator ( ) . next ( ) . getKey ( ) ; } return null ; }
Returns the name of a singleton variable used by this template . If the template does not contain a single variable returns null .