Package org.ek9lang.cli
Class Eve.Version
java.lang.Object
org.ek9lang.cli.Eve.Version
- Enclosing class:
Eve
The version.
Takes a version text for features or plain versions.
Both with or without a build number.
This then allows the developer to manipulate major, minor, patch and build numbers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) Integer
(package private) String
feature()
(package private) void
Increments the build part of the version number.void
Increments the major part of the version number.(package private) void
Increments the minor part of the version number.(package private) void
Increments the patch part of the version number.(package private) static boolean
isInvalidVersionAddressPart
(String versionParam) True if version segment is not major, minor, patch or build.(package private) Integer
major()
(package private) Integer
minor()
(package private) Integer
patch()
toString()
(package private) static Eve.Version
withBuildNumber
(String value) Parse the incoming - but expect a build number.(package private) static Eve.Version
withFeatureNoBuildNumber
(String value) (package private) static Eve.Version
withNoBuildNumber
(String value) Parse the incoming - but expect no build number.(package private) static Eve.Version
withNoFeatureNoBuildNumber
(String value)
-
Constructor Details
-
Version
Version()
-
-
Method Details
-
isInvalidVersionAddressPart
True if version segment is not major, minor, patch or build. -
withNoBuildNumber
Parse the incoming - but expect no build number. -
withNoFeatureNoBuildNumber
-
withFeatureNoBuildNumber
-
withBuildNumber
Parse the incoming - but expect a build number. -
major
Integer major() -
incrementMajor
public void incrementMajor()Increments the major part of the version number. -
minor
Integer minor() -
incrementMinor
void incrementMinor()Increments the minor part of the version number. -
patch
Integer patch() -
incrementPatch
void incrementPatch()Increments the patch part of the version number. -
feature
String feature() -
buildNumber
Integer buildNumber() -
incrementBuildNumber
void incrementBuildNumber()Increments the build part of the version number. -
toString
-