A B C D E F G H I L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- alphanumericIdentifier() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the <alphanumeric identifier> non-terminal.
- and(Expression) - Method in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Adds another
Expression
toCompositeExpression
usingAnd
logical expression. - And - Class in com.github.zafarkhaja.semver.expr
-
Expression for the logical "and" operator.
- And(Expression, Expression) - Constructor for class com.github.zafarkhaja.semver.expr.And
-
Constructs a
And
expression with the left-hand and right-hand operands. - AND - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
B
- build - Variable in class com.github.zafarkhaja.semver.Version
-
The build metadata.
- build - Variable in class com.github.zafarkhaja.semver.Version.Builder
-
The build metadata string.
- build() - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Builds a
Version
object. - BUILD_AWARE_ORDER - Static variable in class com.github.zafarkhaja.semver.Version
-
A comparator that respects the build metadata when comparing versions.
- BUILD_PREFIX - Static variable in class com.github.zafarkhaja.semver.Version
-
A separator that separates the build metadata from the normal version or the pre-release version.
- BuildAwareOrder() - Constructor for class com.github.zafarkhaja.semver.Version.BuildAwareOrder
- Builder() - Constructor for class com.github.zafarkhaja.semver.Version.Builder
-
Constructs a
Builder
instance. - Builder(String) - Constructor for class com.github.zafarkhaja.semver.Version.Builder
-
Constructs a
Builder
instance with the string representation of the normal version. - buildIdentifier() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the <build identifier> non-terminal.
C
- CARET - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- chars - Variable in class com.github.zafarkhaja.semver.VersionParser
-
The stream of characters.
- CharType() - Constructor for enum com.github.zafarkhaja.semver.VersionParser.CharType
- checkForEmptyIdentifier() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Checks for empty identifiers in the pre-release version or build metadata.
- checkForLeadingZeroes() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Checks for leading zeroes in the numeric identifiers.
- com.github.zafarkhaja.semver - package com.github.zafarkhaja.semver
-
This is the root package of the Java SemVer library.
- com.github.zafarkhaja.semver.expr - package com.github.zafarkhaja.semver.expr
-
This package contains classes that implement the SemVer Expressions.
- com.github.zafarkhaja.semver.util - package com.github.zafarkhaja.semver.util
-
This package provides some useful utility classes.
- compare(Version, Version) - Method in class com.github.zafarkhaja.semver.Version.BuildAwareOrder
-
Compares two
Version
instances taking into account their build metadata. - compareIdentifierArrays(String[]) - Method in class com.github.zafarkhaja.semver.MetadataVersion
-
Compares two arrays of identifiers.
- compareIdentifiers(String, String) - Method in class com.github.zafarkhaja.semver.MetadataVersion
-
Compares two identifiers.
- compareTo(MetadataVersion) - Method in class com.github.zafarkhaja.semver.MetadataVersion
- compareTo(MetadataVersion) - Method in class com.github.zafarkhaja.semver.MetadataVersion.NullMetadataVersion
- compareTo(NormalVersion) - Method in class com.github.zafarkhaja.semver.NormalVersion
- compareTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Compares this version to the other version.
- compareWithBuildsTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Compare this version to the other version taking into account the build metadata.
- CompositeExpression - Class in com.github.zafarkhaja.semver.expr
-
This class implements internal DSL for the SemVer Expressions using fluent interface.
- CompositeExpression(Expression) - Constructor for class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Constructs a
CompositeExpression
with an underlyingExpression
. - CompositeExpression.Helper - Class in com.github.zafarkhaja.semver.expr
-
A class with static helper methods.
- consume() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Consumes the next element in this stream.
- consume(T...) - Method in class com.github.zafarkhaja.semver.util.Stream
-
Consumes the next element in this stream only if it is of the expected types.
- consumeNextCharacter(VersionParser.CharType...) - Method in class com.github.zafarkhaja.semver.VersionParser
-
Tries to consume the next character in the stream.
- consumeNextToken(Lexer.Token.Type...) - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Tries to consume the next token in the stream.
- currentOffset() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Returns the current offset of this stream.
D
- DIGIT - com.github.zafarkhaja.semver.VersionParser.CharType
- digits() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the <digits> non-terminal.
- DOT - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- DOT - com.github.zafarkhaja.semver.VersionParser.CharType
E
- elements - Variable in class com.github.zafarkhaja.semver.util.Stream
-
The array holding all the elements of this stream.
- ensureValidLookahead(VersionParser.CharType...) - Method in class com.github.zafarkhaja.semver.VersionParser
-
Checks if the next character in the stream is valid.
- EOI - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- EOI - com.github.zafarkhaja.semver.VersionParser.CharType
- eq(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingEqual
expression. - eq(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingEqual
expression. - Equal - Class in com.github.zafarkhaja.semver.expr
-
Expression for the comparison "equal" operator.
- Equal(Version) - Constructor for class com.github.zafarkhaja.semver.expr.Equal
-
Constructs a
Equal
expression with the parsed version. - EQUAL - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- equals(Object) - Method in class com.github.zafarkhaja.semver.expr.Lexer.Token
- equals(Object) - Method in class com.github.zafarkhaja.semver.MetadataVersion
- equals(Object) - Method in class com.github.zafarkhaja.semver.MetadataVersion.NullMetadataVersion
- equals(Object) - Method in class com.github.zafarkhaja.semver.NormalVersion
- equals(Object) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this version equals the other version.
- expected - Variable in exception com.github.zafarkhaja.semver.expr.UnexpectedTokenException
-
The array of the expected token types.
- expected - Variable in exception com.github.zafarkhaja.semver.UnexpectedCharacterException
-
The array of expected character types.
- expected - Variable in exception com.github.zafarkhaja.semver.util.UnexpectedElementException
-
The array of the expected element types.
- expr - Variable in exception com.github.zafarkhaja.semver.expr.LexerException
-
The string being analyzed starting from an illegal character.
- expr - Variable in class com.github.zafarkhaja.semver.expr.Not
-
The expression to negate.
- Expression - Interface in com.github.zafarkhaja.semver.expr
-
The
Expression
interface is to be implemented by the nodes of the Abstract Syntax Tree produced by theExpressionParser
class. - ExpressionParser - Class in com.github.zafarkhaja.semver.expr
-
A parser for the SemVer Expressions.
- ExpressionParser(Lexer) - Constructor for class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Constructs a
ExpressionParser
instance with the corresponding lexer. - exprTree - Variable in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
The underlying expression tree.
F
- forCharacter(Character) - Static method in enum com.github.zafarkhaja.semver.VersionParser.CharType
-
Gets the type for a given character.
- forIntegers(int) - Static method in class com.github.zafarkhaja.semver.Version
-
Creates a new instance of
Version
for the specified version numbers. - forIntegers(int, int) - Static method in class com.github.zafarkhaja.semver.Version
-
Creates a new instance of
Version
for the specified version numbers. - forIntegers(int, int, int) - Static method in class com.github.zafarkhaja.semver.Version
-
Creates a new instance of
Version
for the specified version numbers.
G
- getBuildMetadata() - Method in class com.github.zafarkhaja.semver.Version
-
Returns the string representation of the build metadata.
- getExpectedCharTypes() - Method in exception com.github.zafarkhaja.semver.UnexpectedCharacterException
-
Gets the expected character types.
- getExpectedElementTypes() - Method in exception com.github.zafarkhaja.semver.util.UnexpectedElementException
-
Gets the expected element types.
- getExpectedTokenTypes() - Method in exception com.github.zafarkhaja.semver.expr.UnexpectedTokenException
-
Gets the expected token types.
- getLeastCommonArrayLength(String[], String[]) - Method in class com.github.zafarkhaja.semver.MetadataVersion
-
Returns the size of the smallest array.
- getMajor() - Method in class com.github.zafarkhaja.semver.NormalVersion
-
Returns the major version number.
- getMajorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Returns the major version number.
- getMinor() - Method in class com.github.zafarkhaja.semver.NormalVersion
-
Returns the minor version number.
- getMinorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Returns the minor version number.
- getNormalVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Returns the string representation of the normal version.
- getPatch() - Method in class com.github.zafarkhaja.semver.NormalVersion
-
Returns the patch version number.
- getPatchVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Returns the patch version number.
- getPosition() - Method in exception com.github.zafarkhaja.semver.UnexpectedCharacterException
-
Gets the position of the unexpected character.
- getPosition() - Method in exception com.github.zafarkhaja.semver.util.UnexpectedElementException
-
Gets the position of the unexpected element.
- getPreReleaseVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Returns the string representation of the pre-release version.
- getUnexpectedCharacter() - Method in exception com.github.zafarkhaja.semver.UnexpectedCharacterException
-
Gets the unexpected character.
- getUnexpectedElement() - Method in exception com.github.zafarkhaja.semver.util.UnexpectedElementException
-
Gets the unexpected element.
- getUnexpectedToken() - Method in exception com.github.zafarkhaja.semver.expr.UnexpectedTokenException
-
Gets the unexpected token.
- Greater - Class in com.github.zafarkhaja.semver.expr
-
Expression for the comparison "greater than" operator.
- Greater(Version) - Constructor for class com.github.zafarkhaja.semver.expr.Greater
-
Constructs a
Greater
expression with the parsed version. - GREATER - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- GREATER_EQUAL - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- GreaterOrEqual - Class in com.github.zafarkhaja.semver.expr
-
Expression for the comparison "greater than or equal to" operator.
- GreaterOrEqual(Version) - Constructor for class com.github.zafarkhaja.semver.expr.GreaterOrEqual
-
Constructs a
GreaterOrEqual
expression with the parsed version. - greaterThan(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this version is greater than the other version.
- greaterThanOrEqualTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this version is greater than or equal to the other version.
- gt(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingGreater
expression. - gt(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingGreater
expression. - gte(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingGreaterOrEqual
expression. - gte(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingGreaterOrEqual
expression.
H
- hashCode() - Method in class com.github.zafarkhaja.semver.expr.Lexer.Token
- hashCode() - Method in class com.github.zafarkhaja.semver.MetadataVersion
- hashCode() - Method in class com.github.zafarkhaja.semver.MetadataVersion.NullMetadataVersion
- hashCode() - Method in class com.github.zafarkhaja.semver.NormalVersion
- hashCode() - Method in class com.github.zafarkhaja.semver.Version
- Helper() - Constructor for class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
- HYPHEN - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- HYPHEN - com.github.zafarkhaja.semver.VersionParser.CharType
I
- idents - Variable in class com.github.zafarkhaja.semver.MetadataVersion
-
The array containing the version's identifiers.
- ILLEGAL - com.github.zafarkhaja.semver.VersionParser.CharType
- increment() - Method in class com.github.zafarkhaja.semver.MetadataVersion
-
Increments the metadata version.
- increment() - Method in class com.github.zafarkhaja.semver.MetadataVersion.NullMetadataVersion
- incrementBuildMetadata() - Method in class com.github.zafarkhaja.semver.Version
-
Increments the build metadata.
- incrementMajor() - Method in class com.github.zafarkhaja.semver.NormalVersion
-
Increments the major version number.
- incrementMajorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Increments the major version.
- incrementMajorVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
Increments the major version and appends the pre-release version.
- incrementMinor() - Method in class com.github.zafarkhaja.semver.NormalVersion
-
Increments the minor version number.
- incrementMinorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Increments the minor version.
- incrementMinorVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
Increments the minor version and appends the pre-release version.
- incrementPatch() - Method in class com.github.zafarkhaja.semver.NormalVersion
-
Increments the patch version number.
- incrementPatchVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Increments the patch version.
- incrementPatchVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
Increments the patch version and appends the pre-release version.
- incrementPreReleaseVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Increments the pre-release version.
- interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.And
-
Checks if both operands evaluate to
true
. - interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Interprets the expression.
- interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.Equal
-
Checks if the current version equals the parsed version.
- interpret(Version) - Method in interface com.github.zafarkhaja.semver.expr.Expression
-
Interprets the expression.
- interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.Greater
-
Checks if the current version is greater than the parsed version.
- interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.GreaterOrEqual
-
Checks if the current version is greater than or equal to the parsed version.
- interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.Less
-
Checks if the current version is less than the parsed version.
- interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.LessOrEqual
-
Checks if the current version is less than or equal to the parsed version.
- interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.Not
-
Negates the given expression.
- interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.NotEqual
-
Checks if the current version does not equal the parsed version.
- interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.Or
-
Checks if one of the operands evaluates to
true
. - interpret(String) - Method in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Interprets the expression.
- intOf(String) - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Returns a
int
representation of the specified string. - isFilled(String) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Checks if a string has a usable value.
- isHyphenRange() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Determines if the following version terminals are part of the <hyphen-range> non-terminal.
- isInt(String) - Method in class com.github.zafarkhaja.semver.MetadataVersion
-
Checks if the specified string is an integer.
- isMatchedBy(Lexer.Token) - Method in enum com.github.zafarkhaja.semver.expr.Lexer.Token.Type
-
Checks if the specified element matches this type.
- isMatchedBy(E) - Method in interface com.github.zafarkhaja.semver.util.Stream.ElementType
-
Checks if the specified element matches this type.
- isPartialVersionRange() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Determines if the following version terminals are part of the <partial-version-range> non-terminal.
- isVersionFollowedBy(Stream.ElementType<Lexer.Token>) - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Determines if the version terminals are followed by the specified token type.
- isWildcardRange() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Determines if the following version terminals are part of the <wildcard-range> non-terminal.
- iterator() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Returns an iterator over elements that are left in this stream.
L
- left - Variable in class com.github.zafarkhaja.semver.expr.And
-
The left-hand operand of expression.
- left - Variable in class com.github.zafarkhaja.semver.expr.Or
-
The left-hand operand of expression.
- LEFT_PAREN - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- Less - Class in com.github.zafarkhaja.semver.expr
-
Expression for the comparison "less than" operator.
- Less(Version) - Constructor for class com.github.zafarkhaja.semver.expr.Less
-
Constructs a
Less
expression with the parsed version. - LESS - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- LESS_EQUAL - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- LessOrEqual - Class in com.github.zafarkhaja.semver.expr
-
Expression for the comparison "less than or equal to" operator.
- LessOrEqual(Version) - Constructor for class com.github.zafarkhaja.semver.expr.LessOrEqual
-
Constructs a
LessOrEqual
expression with the parsed version. - lessThan(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this version is less than the other version.
- lessThanOrEqualTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this version is less than or equal to the other version.
- LETTER - com.github.zafarkhaja.semver.VersionParser.CharType
- lexeme - Variable in class com.github.zafarkhaja.semver.expr.Lexer.Token
-
The lexeme of this token.
- lexer - Variable in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
The lexer instance used for tokenization of the input string.
- Lexer - Class in com.github.zafarkhaja.semver.expr
-
A lexer for the SemVer Expressions.
- Lexer() - Constructor for class com.github.zafarkhaja.semver.expr.Lexer
-
Constructs a
Lexer
instance. - Lexer.Token - Class in com.github.zafarkhaja.semver.expr
-
This class holds the information about lexemes in the input stream.
- Lexer.Token.Type - Enum in com.github.zafarkhaja.semver.expr
-
Valid token types.
- LexerException - Exception in com.github.zafarkhaja.semver.expr
-
Thrown during the lexical analysis when an illegal character is encountered.
- LexerException(String) - Constructor for exception com.github.zafarkhaja.semver.expr.LexerException
-
Constructs a
LexerException
instance with a string starting from an illegal character. - lookahead() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Returns the next element in this stream without consuming it.
- lookahead(int) - Method in class com.github.zafarkhaja.semver.util.Stream
-
Returns the element at the specified position in this stream without consuming it.
- lt(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingLess
expression. - lt(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingLess
expression. - lte(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingLessOrEqual
expression. - lte(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingLessOrEqual
expression.
M
- major - Variable in class com.github.zafarkhaja.semver.NormalVersion
-
The major version number.
- MetadataVersion - Class in com.github.zafarkhaja.semver
-
The
MetadataVersion
class is used to represent the pre-release version and the build metadata. - MetadataVersion(String[]) - Constructor for class com.github.zafarkhaja.semver.MetadataVersion
-
Constructs a
MetadataVersion
instance with identifiers. - MetadataVersion.NullMetadataVersion - Class in com.github.zafarkhaja.semver
-
The implementation of the Null Object design pattern.
- minor - Variable in class com.github.zafarkhaja.semver.NormalVersion
-
The minor version number.
N
- nearestCharType(VersionParser.CharType...) - Method in class com.github.zafarkhaja.semver.VersionParser
-
Finds the nearest character type.
- neq(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingNotEqual
expression. - neq(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingNotEqual
expression. - newInstance() - Static method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Creates and returns new instance of the
ExpressionParser
class. - normal - Variable in class com.github.zafarkhaja.semver.Version.Builder
-
The normal version string.
- normal - Variable in class com.github.zafarkhaja.semver.Version
-
The normal version.
- NormalVersion - Class in com.github.zafarkhaja.semver
-
The
NormalVersion
class represents the version core. - NormalVersion(int, int, int) - Constructor for class com.github.zafarkhaja.semver.NormalVersion
-
Constructs a
NormalVersion
with the major, minor and patch version numbers. - not(Expression) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpression
with an underlyingNot
expression. - Not - Class in com.github.zafarkhaja.semver.expr
-
Expression for the logical "negation" operator.
- Not(Expression) - Constructor for class com.github.zafarkhaja.semver.expr.Not
-
Constructs a
Not
expression with an expression to negate. - NOT - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- NOT_EQUAL - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- NotEqual - Class in com.github.zafarkhaja.semver.expr
-
Expression for the comparison "not equal" operator.
- NotEqual(Version) - Constructor for class com.github.zafarkhaja.semver.expr.NotEqual
-
Constructs a
NotEqual
expression with the parsed version. - NULL - Static variable in class com.github.zafarkhaja.semver.MetadataVersion
-
Null metadata, the implementation of the Null Object design pattern.
- NullMetadataVersion() - Constructor for class com.github.zafarkhaja.semver.MetadataVersion.NullMetadataVersion
-
Constructs a
NullMetadataVersion
instance. - NUMERIC - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- numericIdentifier() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the <numeric identifier> non-terminal.
O
- offset - Variable in class com.github.zafarkhaja.semver.util.Stream
-
The current offset which is incremented when an element is consumed.
- or(Expression) - Method in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Adds another
Expression
toCompositeExpression
usingOr
logical expression. - Or - Class in com.github.zafarkhaja.semver.expr
-
Expression for the logical "or" operator.
- Or(Expression, Expression) - Constructor for class com.github.zafarkhaja.semver.expr.Or
-
Constructs a
Or
expression with the left-hand and right-hand operands. - OR - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
P
- parse(String) - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the SemVer Expressions.
- parse(String) - Method in interface com.github.zafarkhaja.semver.Parser
-
Parses the input string.
- parse(String) - Method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the input string.
- parseBuild() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the <build> non-terminal.
- parseBuild(String) - Static method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the build metadata.
- parseCaretRange() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the <caret-range> non-terminal.
- parseComparisonRange() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the <comparison-range> non-terminal.
- parsedVersion - Variable in class com.github.zafarkhaja.semver.expr.Equal
-
The parsed version, the right-hand operand of the "equal" operator.
- parsedVersion - Variable in class com.github.zafarkhaja.semver.expr.Greater
-
The parsed version, the right-hand operand of the "greater than" operator.
- parsedVersion - Variable in class com.github.zafarkhaja.semver.expr.GreaterOrEqual
-
The parsed version, the right-hand operand of the "greater than or equal to" operator.
- parsedVersion - Variable in class com.github.zafarkhaja.semver.expr.Less
-
The parsed version, the right-hand operand of the "less than" operator.
- parsedVersion - Variable in class com.github.zafarkhaja.semver.expr.LessOrEqual
-
The parsed version, the right-hand operand of the "less than or equal to" operator.
- parsedVersion - Variable in class com.github.zafarkhaja.semver.expr.NotEqual
-
The parsed version, the right-hand operand of the "not equal" operator.
- ParseException - Exception in com.github.zafarkhaja.semver
-
Thrown to indicate an error during the parsing.
- ParseException() - Constructor for exception com.github.zafarkhaja.semver.ParseException
-
Constructs a
ParseException
instance with no error message. - ParseException(String) - Constructor for exception com.github.zafarkhaja.semver.ParseException
-
Constructs a
ParseException
instance with an error message. - ParseException(String, UnexpectedCharacterException) - Constructor for exception com.github.zafarkhaja.semver.ParseException
-
Constructs a
ParseException
instance with an error message and the cause exception. - parseHyphenRange() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the <hyphen-range> non-terminal.
- parseMoreExpressions(CompositeExpression) - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the <more-expr> non-terminal.
- parsePartialVersionRange() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the <partial-version-range> non-terminal.
- parsePreRelease() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the <pre-release> non-terminal.
- parsePreRelease(String) - Static method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the pre-release version.
- Parser<T> - Interface in com.github.zafarkhaja.semver
-
A parser interface.
- parseRange() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the <range> non-terminal.
- parseSemVerExpression() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the <semver-expr> non-terminal.
- parseTildeRange() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the <tilde-range> non-terminal.
- parseValidSemVer() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the <valid semver> non-terminal.
- parseValidSemVer(String) - Static method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the whole version including pre-release version and build metadata.
- parseVersion() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the <version> non-terminal.
- parseVersionCore() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the <version core> non-terminal.
- parseVersionCore(String) - Static method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the version core.
- parseWildcardRange() - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the <wildcard-range> non-terminal.
- patch - Variable in class com.github.zafarkhaja.semver.NormalVersion
-
The patch version number.
- pattern - Variable in enum com.github.zafarkhaja.semver.expr.Lexer.Token.Type
-
A pattern matching this type.
- PLUS - com.github.zafarkhaja.semver.VersionParser.CharType
- position - Variable in class com.github.zafarkhaja.semver.expr.Lexer.Token
-
The position of this token.
- position - Variable in exception com.github.zafarkhaja.semver.UnexpectedCharacterException
-
The position of the unexpected character.
- position - Variable in exception com.github.zafarkhaja.semver.util.UnexpectedElementException
-
The position of the unexpected element in the stream.
- positiveLookahead(T...) - Method in class com.github.zafarkhaja.semver.util.Stream
-
Checks if the next element in this stream is of the expected types.
- positiveLookaheadBefore(Stream.ElementType<E>, T...) - Method in class com.github.zafarkhaja.semver.util.Stream
-
Checks if there exists an element in this stream of the expected types before the specified type.
- positiveLookaheadUntil(int, T...) - Method in class com.github.zafarkhaja.semver.util.Stream
-
Checks if there is an element in this stream of the expected types until the specified position.
- PRE_RELEASE_PREFIX - Static variable in class com.github.zafarkhaja.semver.Version
-
A separator that separates the pre-release version from the normal version.
- preRelease - Variable in class com.github.zafarkhaja.semver.Version.Builder
-
The pre-release version string.
- preRelease - Variable in class com.github.zafarkhaja.semver.Version
-
The pre-release version.
- preReleaseIdentifier() - Method in class com.github.zafarkhaja.semver.VersionParser
-
Parses the <pre-release identifier> non-terminal.
- pushBack() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Pushes back one element at a time.
R
- right - Variable in class com.github.zafarkhaja.semver.expr.And
-
The right-hand operand of expression.
- right - Variable in class com.github.zafarkhaja.semver.expr.Or
-
The right-hand operand of expression.
- RIGHT_PAREN - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
S
- satisfies(Expression) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this version satisfies the specified SemVer Expression.
- satisfies(String) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this version satisfies the specified SemVer Expression string.
- setBuildMetadata(String) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets the build metadata.
- setBuildMetadata(String) - Method in class com.github.zafarkhaja.semver.Version
-
Sets the build metadata.
- setNormalVersion(String) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets the normal version.
- setPreReleaseVersion(String) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets the pre-release version.
- setPreReleaseVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
Sets the pre-release version.
- Stream<E> - Class in com.github.zafarkhaja.semver.util
-
A simple stream class used to represent a stream of characters or tokens.
- Stream(E[]) - Constructor for class com.github.zafarkhaja.semver.util.Stream
-
Constructs a stream containing the specified elements.
- Stream.ElementType<E> - Interface in com.github.zafarkhaja.semver.util
-
The
ElementType
interface represents types of the elements held by this stream and can be used for stream filtering.
T
- TILDE - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- toArray() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Returns an array containing all of the elements that are left in this stream.
- Token(Lexer.Token.Type, String, int) - Constructor for class com.github.zafarkhaja.semver.expr.Lexer.Token
-
Constructs a
Token
instance with the type, lexeme and position. - tokenize(String) - Method in class com.github.zafarkhaja.semver.expr.Lexer
-
Tokenizes the specified input string.
- tokens - Variable in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
The stream of tokens produced by the lexer.
- toString() - Method in class com.github.zafarkhaja.semver.expr.Lexer.Token
-
Returns the string representation of this token.
- toString() - Method in enum com.github.zafarkhaja.semver.expr.Lexer.Token.Type
-
Returns the string representation of this type.
- toString() - Method in exception com.github.zafarkhaja.semver.expr.LexerException
-
Returns the string representation of this exception.
- toString() - Method in exception com.github.zafarkhaja.semver.expr.UnexpectedTokenException
-
Returns the string representation of this exception containing the information about the unexpected token and, if available, about the expected types.
- toString() - Method in class com.github.zafarkhaja.semver.MetadataVersion.NullMetadataVersion
- toString() - Method in class com.github.zafarkhaja.semver.MetadataVersion
- toString() - Method in class com.github.zafarkhaja.semver.NormalVersion
-
Returns the string representation of this normal version.
- toString() - Method in exception com.github.zafarkhaja.semver.ParseException
-
Returns the string representation of this exception.
- toString() - Method in exception com.github.zafarkhaja.semver.UnexpectedCharacterException
-
Returns the string representation of this exception containing the information about the unexpected element and, if available, about the expected types.
- toString() - Method in exception com.github.zafarkhaja.semver.util.UnexpectedElementException
-
Returns the string representation of this exception containing the information about the unexpected element and, if available, about the expected types.
- toString() - Method in class com.github.zafarkhaja.semver.Version
- type - Variable in class com.github.zafarkhaja.semver.expr.Lexer.Token
-
The type of this token.
- Type(String) - Constructor for enum com.github.zafarkhaja.semver.expr.Lexer.Token.Type
-
Constructs a token type with a regular expression for the pattern.
U
- unexpected - Variable in exception com.github.zafarkhaja.semver.expr.UnexpectedTokenException
-
The unexpected token.
- unexpected - Variable in exception com.github.zafarkhaja.semver.UnexpectedCharacterException
-
The unexpected character.
- unexpected - Variable in exception com.github.zafarkhaja.semver.util.UnexpectedElementException
-
The unexpected element in the stream.
- UnexpectedCharacterException - Exception in com.github.zafarkhaja.semver
-
Thrown when attempting to consume a character of unexpected types.
- UnexpectedCharacterException(UnexpectedElementException) - Constructor for exception com.github.zafarkhaja.semver.UnexpectedCharacterException
-
Constructs a
UnexpectedCharacterException
instance with the wrappedUnexpectedElementException
exception. - UnexpectedCharacterException(Character, int, VersionParser.CharType...) - Constructor for exception com.github.zafarkhaja.semver.UnexpectedCharacterException
-
Constructs a
UnexpectedCharacterException
instance with the unexpected character, its position and the expected types. - UnexpectedElementException - Exception in com.github.zafarkhaja.semver.util
-
Thrown when attempting to consume a stream element of unexpected types.
- UnexpectedElementException(Object, int, Stream.ElementType<?>...) - Constructor for exception com.github.zafarkhaja.semver.util.UnexpectedElementException
-
Constructs a
UnexpectedElementException
instance with the unexpected element and the expected types. - UnexpectedTokenException - Exception in com.github.zafarkhaja.semver.expr
-
Thrown when a token of unexpected types is encountered during the parsing.
- UnexpectedTokenException(Lexer.Token, Lexer.Token.Type...) - Constructor for exception com.github.zafarkhaja.semver.expr.UnexpectedTokenException
-
Constructs a
UnexpectedTokenException
instance with the unexpected token and the expected types. - UnexpectedTokenException(UnexpectedElementException) - Constructor for exception com.github.zafarkhaja.semver.expr.UnexpectedTokenException
-
Constructs a
UnexpectedTokenException
instance with the wrappedUnexpectedElementException
exception.
V
- valueOf(String) - Static method in enum com.github.zafarkhaja.semver.expr.Lexer.Token.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in class com.github.zafarkhaja.semver.Version
-
Creates a new instance of
Version
as a result of parsing the specified version string. - valueOf(String) - Static method in enum com.github.zafarkhaja.semver.VersionParser.CharType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.github.zafarkhaja.semver.expr.Lexer.Token.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.github.zafarkhaja.semver.VersionParser.CharType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- Version - Class in com.github.zafarkhaja.semver
-
The
Version
class is the main class of the Java SemVer library. - Version(NormalVersion) - Constructor for class com.github.zafarkhaja.semver.Version
-
Constructs a
Version
instance with the normal version. - Version(NormalVersion, MetadataVersion) - Constructor for class com.github.zafarkhaja.semver.Version
-
Constructs a
Version
instance with the normal version and the pre-release version. - Version(NormalVersion, MetadataVersion, MetadataVersion) - Constructor for class com.github.zafarkhaja.semver.Version
-
Constructs a
Version
instance with the normal version, the pre-release version and the build metadata. - Version.BuildAwareOrder - Class in com.github.zafarkhaja.semver
-
A build-aware comparator.
- Version.Builder - Class in com.github.zafarkhaja.semver
-
A mutable builder for the immutable
Version
class. - versionFor(int) - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Creates a
Version
instance for the specified major version. - versionFor(int, int) - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Creates a
Version
instance for the specified major and minor versions. - versionFor(int, int, int) - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Creates a
Version
instance for the specified major, minor and patch versions. - VersionParser - Class in com.github.zafarkhaja.semver
-
A parser for the SemVer Version.
- VersionParser(String) - Constructor for class com.github.zafarkhaja.semver.VersionParser
-
Constructs a
VersionParser
instance with the input string to parse. - VersionParser.CharType - Enum in com.github.zafarkhaja.semver
-
Valid character types.
W
- WHITESPACE - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
- WILDCARD - com.github.zafarkhaja.semver.expr.Lexer.Token.Type
All Classes All Packages