public final class JZtxtcmdFilepath
extends java.lang.Object
JZtxtcmdExecuter.ExecuteLevel
where this variable is located
and a reference to the JZtxtcmdScript.Filepath
. The last one contains all information about the
file entity. This class is used to get all presentation possibilities of the file. Therefore the current directory
should be known which is given in the JZcmd executer level.
Modifier and Type | Field and Description |
---|---|
(package private) FilePath |
data |
static int |
version
Version, history and license.
|
private JZtxtcmdExecuter.ExecuteLevel |
zgenlevel
Aggregation to a given
UserFileset where this is member of. |
Constructor and Description |
---|
JZtxtcmdFilepath(JZtxtcmdExecuter.ExecuteLevel zgenlevel,
FilePath filepath)
Creates an instance with given data.
|
JZtxtcmdFilepath(JZtxtcmdExecuter.ExecuteLevel zgenlevel,
JZtxtcmdFilepath src,
JZtxtcmdFilepath commonPath,
JZtxtcmdFilepath accessPath)
Creates a JZcmdFilepath entry with an additonal pathbase.
|
JZtxtcmdFilepath(JZtxtcmdExecuter.ExecuteLevel zgenlevel,
java.lang.String filepath)
Creates an instance with given data.
|
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
absbasepath()
Assembles and returns the designated part from this Filepath as String or StringBuilder:: <&absbasepath()>.
|
java.lang.CharSequence |
absbasepathW() |
java.lang.CharSequence |
absdir()
Assembles and returns the designated part from this Filepath as String or StringBuilder:: <&path.absdir()>.
|
java.lang.CharSequence |
absdirW() |
java.lang.CharSequence |
absfile()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&path.absfile()>.
|
(package private) java.lang.CharSequence |
absfileReplwildcard(FilePath replWildc)
Returns the local file with replaced wildcard in the local dir.
|
java.lang.CharSequence |
absfileW() |
java.lang.CharSequence |
absname()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&data.absname()>.
|
java.lang.CharSequence |
absnameW() |
boolean |
allTree()
Returns true if the local path contains (ends with) "/**"
|
java.lang.CharSequence |
base_localdir()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&data.base_localdir()>.
|
java.lang.CharSequence |
base_localdirW() |
java.lang.CharSequence |
base_localfile()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&data.base_localfile()>.
|
java.lang.CharSequence |
base_localfileW() |
java.lang.CharSequence |
basepath()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&basepath()>.
|
java.lang.CharSequence |
basepathW() |
java.lang.CharSequence |
dir()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&path.dir()>.
|
java.lang.CharSequence |
dirW() |
java.lang.String |
ext()
Assembles and returns the extension from this Filepath as String..
|
java.lang.CharSequence |
file()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&data.file()>.
|
java.lang.CharSequence |
file(java.lang.StringBuilder uRet,
FilePath commonPath,
FilePath accesspath) |
java.lang.CharSequence |
fileW() |
java.lang.CharSequence |
fileW(java.lang.StringBuilder uRet,
FilePath commonPath,
FilePath accesspath) |
java.lang.CharSequence |
localdir()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&path.localdir()>.
|
java.lang.CharSequence |
localdirW()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&path.localDir()>.
|
java.lang.CharSequence |
localfile()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&path.localfile()>.
|
java.lang.CharSequence |
localfileReplwildcard(java.lang.StringBuilder uRet,
JZtxtcmdFilepath replWildc) |
java.lang.CharSequence |
localfileW() |
java.lang.CharSequence |
localname()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&path.localname()>.
|
java.lang.CharSequence |
localnameW() |
java.lang.CharSequence |
name()
Returns the name from this Filepath as String.
|
java.lang.CharSequence |
namext()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&path.namext()>.
|
java.lang.CharSequence |
pathname()
Assembles and returns the designated part from this Filepath as String or StringBuilder: <&data.pathname()>.
|
java.lang.CharSequence |
pathnameW() |
java.lang.String |
toString() |
public static final int version
ExecuteLevel
implements FilePath.FilePathEnvAccess
now
instead this, therewith a JZtxtcmdFileset#listFiles(List, JZtxtcmdFilepath, boolean, org.vishia.util.FilePath.FilePathEnvAccess)
does not need an accessPath, it may be empty respectively null.
data
. The original fields are contained in
JZtxtcmdScript.Filepath
. Both are separated because the parts in JZcmdScript are set completely
by parsing the script. This class contains the access methods which uses the reference zgenlevel
.
FileFunctions.normalizePath(CharSequence)
called in #absbasepath(CharSequence)
offers the normalize path for all absolute file paths.
#absfile(JZtxtcmdFilepath)
(TODO for some more access methods)
ZmakeUserScript
private final JZtxtcmdExecuter.ExecuteLevel zgenlevel
UserFileset
where this is member of.
A UserFileset#commonBasepath
which is valid for all files of the #itsFileset
is gotten from there,
if it is given (not null).
UserTarget#allInputFiles()
if more as one fileSets are used as the target's input or an accessPath is given.
In that kind the UserFileset#filesOfFileset
are cloned without this aggregation and the commonBasePath
and the accessPath are part of the basepath()
of this.final FilePath data
JZtxtcmdFilepath(JZtxtcmdExecuter.ExecuteLevel zgenlevel, FilePath filepath)
zgenlevel
- filepath
- given dataJZtxtcmdFilepath(JZtxtcmdExecuter.ExecuteLevel zgenlevel, java.lang.String filepath)
JZtxtcmdExecuter
.
Use there the construct Filepath: < stringexpression>
zgenlevel
- filepath
- given dataJZtxtcmdFilepath(JZtxtcmdExecuter.ExecuteLevel zgenlevel, JZtxtcmdFilepath src, JZtxtcmdFilepath commonPath, JZtxtcmdFilepath accessPath) throws java.lang.NoSuchFieldException
zgenlevel
- Reference to the zgenlevel, necessary for the current directorysrc
- The source (clone source)basepath
- An additional basepath usual stored as basepath=path, ...
in a fileset, maybe nullpathbase0
- additional pre-pathbase before base, maybe nulljava.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence absbasepath() throws java.lang.NoSuchFieldException
UserFileSet
as absolute path.java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence absbasepathW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence absdir() throws java.lang.NoSuchFieldException
UserFileSet
.
The path is absolute. If it is given as relative path, the general current directory of the script is used.java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence absdirW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence absname() throws java.lang.NoSuchFieldException
UserFileSet
.
Either as absolute or as relative path.java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence absnameW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence absfile() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence absfileW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence basepath() throws java.lang.NoSuchFieldException
UserFileSet
.
till a ':' in the input path or an empty string.
Either as absolute or as relative path how it is given.java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence basepathW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence dir() throws java.lang.NoSuchFieldException
UserFileSet
.
The path is absolute or relative like it is given.java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence dirW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence pathname() throws java.lang.NoSuchFieldException
UserFileSet
.
The path is absolute or relative like it is given.java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence pathnameW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence file() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence fileW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence file(java.lang.StringBuilder uRet, FilePath commonPath, FilePath accesspath) throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence fileW(java.lang.StringBuilder uRet, FilePath commonPath, FilePath accesspath) throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence base_localdir() throws java.lang.NoSuchFieldException
UserFileSet
with given wildcards
inclusive a given general path. The path is absolute or relative like it is given.java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence base_localdirW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence base_localfile() throws java.lang.NoSuchFieldException
UserFileSet
with given wildcards
inclusive a given general path. The path is absolute or relative like it is given.java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence base_localfileW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence localdir() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence localdirW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence localname() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
- if the basepath contains a scriptvariable and this scriptvariable was not found.public java.lang.CharSequence localnameW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence localfile() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public java.lang.CharSequence localfileW() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public boolean allTree()
java.lang.CharSequence absfileReplwildcard(FilePath replWildc) throws java.lang.NoSuchFieldException
replWildc
- With them localdir and name a wildcard in this.localdir and this.name is replaced.java.lang.NoSuchFieldException
public java.lang.CharSequence localfileReplwildcard(java.lang.StringBuilder uRet, JZtxtcmdFilepath replWildc)
public java.lang.CharSequence name()
public java.lang.CharSequence namext()
public java.lang.String ext()
public java.lang.String toString()
toString
in class java.lang.Object