public PathExtractorImpl(String pathAndFeature,boolean wantFeature){
  this.pathAndFeature=pathAndFeature;
  if (INTERPRET_PATHS) {
    path=pathAndFeature;
    return;
  }
  if (wantFeature) {
    int lastDot=pathAndFeature.lastIndexOf(".");
    if (lastDot == -1) {
      feature=pathAndFeature;
      path=null;
    }
 else {
      feature=pathAndFeature.substring(lastDot + 1);
      path=pathAndFeature.substring(0,lastDot);
    }
    this.wantFeature=wantFeature;
  }
 else {
    this.path=pathAndFeature;
  }
  if (!LAZY_COMPILE) {
    compiledPath=compile(path);
  }
}

public PathExtractorImpl ( String pathAndFeature , boolean wantFeature ) { this . pathAndFeature = pathAndFeature ; if ( INTERPRET_PATHS ) { path = pathAndFeature ; return ; } if ( wantFeature ) { int lastDot = pathAndFeature . lastIndexOf ( "." ) ; if ( lastDot == - 1 ) { feature = pathAndFeature ; path = null ; } else { feature = pathAndFeature . substring ( lastDot + 1 ) ; path = pathAndFeature . substring ( 0 , lastDot ) ; } this . wantFeature = wantFeature ; } else { this . path = pathAndFeature ; } if ( ! LAZY_COMPILE ) { compiledPath = compile ( path ) ; } }
creates a path for the given feature .
