/** * Looks up the version of the specified class using any means available, * appending the build number to any {@code SNAPSHOT} version. Will only * search POMs in the base directory. * * @param c - Look up this class's version * @return Version of specified {@link Class} or null if not found. */ public static String getVersion(final Class<?> c) { return getVersion(c, null, null); }
/** * Retrieves Sholl Analysis version * * @return the version or a non-empty place holder string if version could * not be retrieved. * */ public static String version() { final String VERSION = VersionUtils.getVersion(ShollUtils.class); return (VERSION == null) ? "X Dev" : VERSION; }
/** * Looks up the version of the specified class using any means available, * appending the build number to any {@code SNAPSHOT} version. Will only * search POMs in the base directory. * * @param c - Look up this class's version * @return Version of specified {@link Class} or null if not found. */ public static String getVersion(final Class<?> c) { return getVersion(c, null, null); }
private static String getVersion() { return VersionUtils.getVersion(tracing.SimpleNeuriteTracer.class); }
@Override default String getEngineVersion() { return VersionUtils.getVersion(getClass()); } }
@Override default String getEngineVersion() { return VersionUtils.getVersion(getClass()); } }
/** Gets the version of the object. */ default String getVersion() { return VersionUtils.getVersion(getClass()); }
@Override default String getLanguageVersion() { return VersionUtils.getVersion(getClass()); }
/** Gets the version of the object. */ default String getVersion() { return VersionUtils.getVersion(getClass()); }
@Override default String getLanguageVersion() { return VersionUtils.getVersion(getClass()); }
@Override default String getVersion() { // NB: By default, we use the version of the delegate class's JAR archive. // If the same delegate class is used for more than one module, though, // it may need to override this method to indicate a different version. try { return VersionUtils.getVersion(loadDelegateClass()); } catch (final ClassNotFoundException exc) { return null; } } }
@Override public String getVersion() { try { return VersionUtils.getVersion(loadClass()); } catch (InstantiableException exc) { return null; } }
@Override public String getVersion() { try { return VersionUtils.getVersion(loadClass()); } catch (InstantiableException exc) { return null; } }
@Override default String getVersion() { // NB: By default, we use the version of the delegate class's JAR archive. // If the same delegate class is used for more than one module, though, // it may need to override this method to indicate a different version. try { return VersionUtils.getVersion(loadDelegateClass()); } catch (final ClassNotFoundException exc) { return null; } } }
public Helper(final Context context) { context.inject(this); VERSION = VersionUtils.getVersion(sholl.gui.Helper.class); }