Lines Matching refs:mask

136     // the actions mask
137 private transient int mask;
159 // static Strings used by init(int mask)
169 sb.append("mask = "+mask+"\n");
184 * @param mask the actions mask to use.
187 private void init(int mask)
190 if ((mask & ALL) != mask)
191 throw new IllegalArgumentException("invalid actions mask");
193 if (mask == NONE)
194 throw new IllegalArgumentException("invalid actions mask");
199 this.mask = mask;
289 * Creates a new FilePermission object using an action mask.
296 * @param mask the action mask to use.
300 FilePermission(String path, int mask)
303 init(mask);
332 // we get the effective mask. i.e., the "and" of this and that.
333 // They must be equal to that.mask for implies to return true.
335 return ((this.mask & that.mask) == that.mask) && impliesIgnoreMask(that);
340 * this object's actions. Returns the effective mask iff the
345 * @return the effective mask
408 return (this.mask == that.mask) &&
425 * Converts an actions String to an actions mask.
428 * @return the actions mask.
432 int mask = NONE;
436 return mask;
455 return mask;
477 mask |= READ;
486 mask |= WRITE;
497 mask |= EXECUTE;
507 mask |= DELETE;
519 mask |= READLINK;
549 return mask;
553 * Return the current action mask. Used by the FilePermissionCollection.
555 * @return the actions mask.
559 return mask;
569 private static String getActions(int mask)
574 if ((mask & READ) == READ) {
579 if ((mask & WRITE) == WRITE) {
585 if ((mask & EXECUTE) == EXECUTE) {
591 if ((mask & DELETE) == DELETE) {
597 if ((mask & READLINK) == READLINK) {
618 actions = getActions(this.mask);