public class Link.PatternListEntry
extends java.lang.Object
Constructor and Description |
---|
PatternListEntry()
Creates an unconfigured element.
|
PatternListEntry(java.lang.String pattern)
Creates a new element from either a pattern or listing file.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getListFile()
Returns this element's list file attribute, if set.
|
java.lang.String |
getPattern()
Returns this element's PathMatcher pattern attribute, if set.
|
void |
setListFile(java.io.File file)
Sets this element's list file attribute.
|
void |
setPattern(java.lang.String pattern)
Sets this element's
PathMatcher pattern
attribute for matching files.
|
java.lang.String |
toOptionValue()
Converts this element to a jlink command line attribute,
either this element's bare pattern, or its list file
preceded by "
@ ". |
void |
validate()
Verifies this element's state.
|
public PatternListEntry()
public PatternListEntry(java.lang.String pattern)
@
", the remainder of it
is assumed to be a listing file; otherwise, it is treated as
a PathMatcher pattern.pattern
- a PathMatcher pattern or @
-filenamepublic java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
pattern
- new files patternpublic java.io.File getListFile()
setListFile(File)
public void setListFile(java.io.File file)
file
- list file containing patternsgetListFile()
public void validate()
BuildException
- if both pattern and file are setBuildException
- if neither pattern nor file is setpublic java.lang.String toOptionValue()
@
".