Index: utils/archive/entry.dart |
diff --git a/utils/archive/entry.dart b/utils/archive/entry.dart |
index 72faa7dd05d5cfd597a2e3cca61cef26c999c40b..b5a97d1e74f0c1aaa29ff7ce85d8227994e844b7 100644 |
--- a/utils/archive/entry.dart |
+++ b/utils/archive/entry.dart |
@@ -56,33 +56,33 @@ class ArchiveEntry { |
} |
/** The id of the underlying archive entry. */ |
- int get _id() => _properties[0]; |
+ int get _id => _properties[0]; |
/** If this entry is a hardlink, this is the destination. Otherwise, null. */ |
- String get hardlink() => _properties[1]; |
+ String get hardlink => _properties[1]; |
set hardlink(String value) => _set(SET_HARDLINK, 1, value); |
/** The path to this entry in the archive. */ |
- String get pathname() => _properties[2]; |
+ String get pathname => _properties[2]; |
set pathname(String value) => _set(SET_PATHNAME, 2, value); |
/** The path to this entry on disk, */ |
- String get sourcepath() => _properties[3]; |
+ String get sourcepath => _properties[3]; |
/** If this entry is a symlink, this is the destination. Otherwise, null. */ |
- String get symlink() => _properties[4]; |
+ String get symlink => _properties[4]; |
set symlink(String value) => _set(SET_SYMLINK, 4, value); |
/** The group identifier for this entry. */ |
- int get gid() => _properties[5]; |
+ int get gid => _properties[5]; |
set gid(int value) => _set(SET_GID, 5, value); |
/** The user identifier for this entry. */ |
- int get uid() => _properties[6]; |
+ int get uid => _properties[6]; |
set uid(int value) => _set(SET_UID, 6, value); |
/** The permissions bitmask for this entry. */ |
- int get perm_mask() => _properties[7]; |
+ int get perm_mask => _properties[7]; |
set perm_mask(int value) => _set(SET_PERM, 7, value); |
/** |
@@ -90,14 +90,14 @@ class ArchiveEntry { |
* |
* Note that if you set [perm_mask], this value will not change. |
*/ |
- String get strmode() => _properties[8]; |
+ String get strmode => _properties[8]; |
/** The name of the group this entry belongs to. */ |
- String get gname() => _properties[9]; |
+ String get gname => _properties[9]; |
set gname(String value) => _set(SET_GNAME, 9, value); |
/** The name of the user this entry belongs to. */ |
- String get uname() => _properties[10]; |
+ String get uname => _properties[10]; |
set uname(String value) => _set(SET_UNAME, 10, value); |
/** |
@@ -106,7 +106,7 @@ class ArchiveEntry { |
* Note that if you set [fflags_text], this value will not change, and vice |
* versa. |
*/ |
- int get fflags_set() => _properties[11]; |
+ int get fflags_set => _properties[11]; |
set fflags_set(int value) => _set(SET_FFLAGS_SET, 11, value); |
/** |
@@ -115,7 +115,7 @@ class ArchiveEntry { |
* Note that if you set [fflags_text], this value will not change, and vice |
* versa. |
*/ |
- int get fflags_clear() => _properties[12]; |
+ int get fflags_clear => _properties[12]; |
set fflags_clear(int value) => _set(SET_FFLAGS_CLEAR, 12, value); |
/** |
@@ -124,73 +124,73 @@ class ArchiveEntry { |
* Note that if you set [fflags_set] or [fflags_clear], this value will not |
* change, and vice versa. |
*/ |
- String get fflags_text() => _properties[13]; |
+ String get fflags_text => _properties[13]; |
/** The filetype bitmask for this entry. */ |
- int get filetype_mask() => _properties[14]; |
+ int get filetype_mask => _properties[14]; |
set filetype_mask(int value) => _set(SET_FILETYPE, 14, value); |
/** The filetype and permissions bitmask for this entry. */ |
- int get mode_mask() => _properties[15]; |
+ int get mode_mask => _properties[15]; |
set mode_mask(int value) => _set(SET_MODE, 15, value); |
/** The size of this entry in bytes, or null if it's unset. */ |
- int get size() => _properties[16]; |
+ int get size => _properties[16]; |
set size(int value) => _set(SET_SIZE, 16, value); |
/** The ID of the device containing this entry, or null if it's unset. */ |
- int get dev() => _properties[17]; |
+ int get dev => _properties[17]; |
set dev(int value) => _set(SET_DEV, 17, value); |
/** The major number of the ID of the device containing this entry. */ |
- int get devmajor() => _properties[18]; |
+ int get devmajor => _properties[18]; |
set devmajor(int value) => _set(SET_DEVMAJOR, 18, value); |
/** The minor number of the ID of the device containing this entry. */ |
- int get devminor() => _properties[19]; |
+ int get devminor => _properties[19]; |
set devminor(int value) => _set(SET_DEVMINOR, 19, value); |
/** The inode number of this entry, or null if it's unset. */ |
- int get ino() => _properties[20]; |
+ int get ino => _properties[20]; |
set ino(int value) => _set(SET_INO, 20, value); |
/** The number of references to this entry. */ |
- int get nlink() => _properties[21]; |
+ int get nlink => _properties[21]; |
set nlink(int value) => _set(SET_NLINK, 21, value); |
/** The device ID of this entry. */ |
- int get rdev() => _properties[22]; |
+ int get rdev => _properties[22]; |
set rdev(int value) => _set(SET_RDEV, 22, value); |
/** The major number of the device ID of this entry. */ |
- int get rdevmajor() => _properties[23]; |
+ int get rdevmajor => _properties[23]; |
set rdevmajor(int value) => _set(SET_RDEVMAJOR, 23, value); |
/** The minor number of the device ID of this entry. */ |
- int get rdevminor() => _properties[24]; |
+ int get rdevminor => _properties[24]; |
set rdevminor(int value) => _set(SET_RDEVMINOR, 24, value); |
/** The last time this entry was accessed, or null if it's unset. */ |
- Date get atime() => _fromMs(_properties[25]); |
+ Date get atime => _fromMs(_properties[25]); |
set atime(Date value) => _set(SET_ATIME, 25, _toMs(value)); |
/** The time this entry was created, or null if it's unset. */ |
- Date get birthtime() => _fromMs(_properties[26]); |
+ Date get birthtime => _fromMs(_properties[26]); |
set birthtime(Date value) => _set(SET_BIRTHTIME, 26, _toMs(value)); |
/** |
* The last time an inode property of this entry was changed, or null if it's |
* unset. |
*/ |
- Date get ctime() => _fromMs(_properties[27]); |
+ Date get ctime => _fromMs(_properties[27]); |
set ctime(Date value) => _set(SET_CTIME, 27, _toMs(value)); |
/** The last time this entry was modified, or null if it's unset. */ |
- Date get mtime() => _fromMs(_properties[28]); |
+ Date get mtime => _fromMs(_properties[28]); |
set mtime(Date value) => _set(SET_MTIME, 28, _toMs(value)); |
/** Whether [openInputStream] has been called. */ |
- bool get isInputOpen() => _input != null; |
+ bool get isInputOpen => _input != null; |
/** Create a deep copy of this [ArchiveEntry]. */ |
Future<ArchiveEntry> clone() { |
@@ -330,7 +330,7 @@ class CompleteArchiveEntry extends ArchiveEntry { |
final List<int> contentBytes; |
/** The contents of the entry as a string. */ |
- String get contents() => new String.fromCharCodes(contentBytes); |
+ String get contents => new String.fromCharCodes(contentBytes); |
CompleteArchiveEntry._(List properties, this.contentBytes) |
: super.internal(properties, null); |