com.springsource.bundlor.support.propertysubstitution
Class VersionExpander
java.lang.Object
com.springsource.bundlor.support.propertysubstitution.VersionExpander
final class VersionExpander
- extends java.lang.Object
A VersionExpander is the result of parsing a valid expansion string with the VersionExpansionParser. A version
expander is then a reusable entity that can be fed a four part bundle version and will return the expansion of that.
For example, if the expansion is "[+1.=,+2,=]" and the expander is called with expand(2,3,4,someQualifier) then the
output will be "[3.3,4.3]"
- Author:
- Andy Clement
Method Summary |
java.lang.String |
expand(int maj,
int min,
int mic,
java.lang.String qualifier)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
startInclusive
private final boolean startInclusive
lower
private final java.util.List<Transformer> lower
upper
private final java.util.List<Transformer> upper
endInclusive
private final boolean endInclusive
VersionExpander
public VersionExpander(boolean startInclusive,
java.util.List<Transformer> lower,
java.util.List<Transformer> upper,
boolean endInclusive)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
expand
public java.lang.String expand(int maj,
int min,
int mic,
java.lang.String qualifier)