true
if and only if this file can be executed.
true
if and only if the abstract pathname existsand the application is allowed to execute the file
@throws SecurityException If a security manager exists and its {@link java.lang.SecurityManager#checkExec(java.lang.String)}
method denies execute access to the file
@since 1.6
Returns whether the operation can be executed in its current state.
Note: The computation for this method must be fast, as it is called frequently. If necessary, this method can be optimistic in its computation (returning true) and later perform more time-consuming computations during the actual execution of the operation, returning the appropriate status if the operation cannot actually execute at that time.
@returntrue
if the operation can be executed;false
otherwise.
execute
. The {@link UnexecutableCommand#INSTANCE}.canExecute()
always returns false
. This must be called before calling execute
.
@return whether the command is valid to execute
.
Not all platforms and JREs support executable flags on files. If the feature is unsupported this method will always return false. @param f abstract path to test. @return true if the file is believed to be executable by the user.
true
if {@link UICommand#execute(org.jboss.forge.addon.ui.context.UIExecutionContext)} can becalled.
@throws IllegalStateException if {@link #initialize()} has not been called before invoking this method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|