public final class ExecPermission extends Permission
FilePermission
,
with the same matching semantics.Constructor and Description |
---|
ExecPermission(String name)
Constructs an instance with the specified name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Two instances of this class are equal if
FilePermission
instances created with their names are equal. |
String |
getActions()
Returns the empty string.
|
int |
hashCode()
Returns a hash code value for this object.
|
boolean |
implies(Permission p)
Returns
true if the specified permission is an instance
of ExecPermission and a FilePermission
constructed with the name of this permission implies a
FilePermission constructed with the name of the specified
permission; returns false otherwise. |
checkGuard, getName, newPermissionCollection, toString
public ExecPermission(String name)
name
- the target nameNullPointerException
- if the name is null
public boolean implies(Permission p)
true
if the specified permission is an instance
of ExecPermission
and a FilePermission
constructed with the name of this permission implies a
FilePermission
constructed with the name of the specified
permission; returns false
otherwise.implies
in class Permission
p
- the permission to checktrue
if the specified permission is an instance
of ExecPermission
and a FilePermission
constructed with the name of this permission implies a
FilePermission
constructed with the name of the specified
permission; returns false
otherwise.public boolean equals(Object obj)
FilePermission
instances created with their names are equal.equals
in class Permission
public int hashCode()
hashCode
in class Permission
public String getActions()
getActions
in class Permission
Copyright © 2016–2018. All rights reserved.