Search in sources :

Example 1 with PathSettingParser

use of entry.path.PathSettingParser in project solution-finder by knewjade.

the class EntryPointMain method getPathEntryPoint.

private static Optional<EntryPoint> getPathEntryPoint(List<String> commands) throws FinderInitializeException, FinderParseException {
    PathSettingParser settingParser = new PathSettingParser(commands);
    Optional<PathSettings> settingsOptional = settingParser.parse();
    if (settingsOptional.isPresent()) {
        PathSettings settings = settingsOptional.get();
        return Optional.of(new PathEntryPoint(settings));
    } else {
        return Optional.empty();
    }
}
Also used : PathEntryPoint(entry.path.PathEntryPoint) PathSettingParser(entry.path.PathSettingParser) PathSettings(entry.path.PathSettings)

Aggregations

PathEntryPoint (entry.path.PathEntryPoint)1 PathSettingParser (entry.path.PathSettingParser)1 PathSettings (entry.path.PathSettings)1