private String getLastPackageName ( final String name ) { if ( name != null ) { return name . substring ( name . lastIndexOf ( ' ' ) + 1 ) ; } return null ; }
Gets the last identifier from the specified package name . For example returns apache upon input of org . apache . JTB uses this approach to derive the output directories for the visitor and syntax tree files .