Lines Matching refs:mask
113 * The actions mask.
116 private transient int mask;
130 * @param mask the actions mask to use.
134 private void init(int mask)
137 if ((mask & ALL) != mask)
138 throw new IllegalArgumentException("invalid actions mask");
140 if (mask == NONE)
141 throw new IllegalArgumentException("invalid actions mask");
146 this.mask = mask;
193 // we get the effective mask. i.e., the "and" of this and that.
194 // They must be equal to that.mask for implies to return true.
196 return ((this.mask & that.mask) == that.mask) && super.implies(that);
217 return (this.mask == that.mask) &&
236 * Converts an actions String to an actions mask.
239 * @return the actions mask.
243 int mask = NONE;
246 return mask;
262 return mask;
284 mask |= READ;
293 mask |= WRITE;
323 return mask;
334 static String getActions(int mask)
339 if ((mask & READ) == READ) {
344 if ((mask & WRITE) == WRITE) {
364 actions = getActions(this.mask);
370 * Return the current action mask.
373 * @return the actions mask.
377 return mask;